Contributing Member
Views, Triggers, Normalization
Can any body explain in detail for
1. What is meant by Views, triggers, Normalization?
2. what is purpose of views, triggers, Normalization in sql server?
Re: Views, Triggers, Normalization
your question is toomuch theoritical to explain here. It is beyond the scope of this discussion to explain all that here.Please go through some good books ,mauals or u can find vast resources by little web searching
Junior Member
Re: Views, Triggers, Normalization
Views aviews are nothing but saved sql statements, and are sometimes referred as “virtual tables”. Keep in mind that views cannot store data (except for indexed views); rather they only refer to data present in tables. Let’s checkout the basic syntax for creating a view: create view as go there are two important options that can be used when a view is created. They are schemabinding and encryption. We shall have a detailed look on both of these, shortly, but first of all, let’s take a look of an example of a typical view creation statement without any options. Use northwind go create view vwsample as select customerid, companyname, contactname from customers go the above t-sql will create a view named vwsample. Now instead of using the complete select statement to return the above results, you can just use a simple statement like this: select * from vwsample please drop the view if you are following along on your computer, because i will be using the same name throughout the chapter.
Reply With Quote
08-21-2007
#4
vijay prakash
View Profile
View Forum Posts
Private Message
Junior Member
Join Date Aug 2007
Answers 2
Re: Views, Triggers, Normalization
can any body explain in detaail data base testing
Reply With Quote
08-21-2007
#5
daid_k
View Profile
View Forum Posts
Private Message
Junior Member
Join Date Nov 2005
Answers 1
Re: Views, Triggers, Normalization
The unit testing is the part of data base testing. Means a database programmer test the updation,deletion and insertion based on appropiate condition.at particular level
Reply With Quote
08-21-2007
#6
Siva_Tech
View Profile
View Forum Posts
Private Message
Junior Member
Join Date Jul 2007
Answers 6
Re: Views, Triggers, Normalization
Views:
Views is nothing but a virtual table.will explain with an ex..consider 2 tables A(name,id,title,dob,salary)as the main table and B(id,title,salary)is the view table.In short view is nothing but getting the required/some attributes from the main table and doing some manipulations according to our requirements.
Triggers:
This is an implict function call.we can use triggers in case like the following..
if insert/delete into/from then ...so whenever an insert/delete occurs then the will get TRIGGERED out automatically.
Normaliztion:
To remove the reduntant occurence of data.
can be achieved using 1NF,2NF,3NF,4NF,Boycee code
Revert back if u need more explanation...
Cheers,
Siva
--No one is born Genius--
Reply With Quote
10-09-2007
#7
sari_pot
View Profile
View Forum Posts
Private Message
Junior Member
Join Date Oct 2007
Answers 2
Re: Views, Triggers, Normalization
normalisation is removing the redundant data.There are different forms of normalisation like first NF,second NF,
third Nf,fourth NF and BCNF.Arelation is in firstNF if it has no repeated data,similarly a relation is in second NF if and only if it is in 1NF and is functionally dependant on the whole key.
Reply With Quote
11-10-2007
#8
jaffar_183
View Profile
View Forum Posts
Private Message
Junior Member
Join Date Nov 2007
Answers 1
Re: Views, Triggers, Normalization
hi,
view allow to restriced records
Reply With Quote
11-10-2007
#9
susarlasireesha
View Profile
View Forum Posts
Private Message
Expert Member
Join Date Apr 2007
Answers 500
Re: Views, Triggers, Normalization
A view is a virtual table that consists of columns from one or more tables.
Though it is similar to a table, it is stored in the database.
It is a query stored as an object. Hence, a view is an object that derives
its data from one or more tables. These tables are referred to as base or
underlying tables.
Once you have defined a view, you can reference it like any other table in a database.
A view serves as a security mechanism. This ensures that users are able to retrieve and modify only the data seen by them.
Users cannot see or access the remaining data in the underlying tables. A view also serves as a mechanism to simplify query execution. Complex queries can be stored in the form as a view,
and data from the view can be extracted using simple queries.
Some common examples of views are:
A subset of rows or columns of a base table.
A union of two or more tables.
A join of two or more tables.
A statistical summary of base tables.
A subset of another view, or some combination of views and base table.
CREATE VIEW view_name
[(column_name[,column_name]….)]
[WITH ENCRYPTION]
AS select_statement [WITH CHECK OPTION]
Triggers:
Triggers are a special PL/SQL construct similar to procedures.
However, a procedure is executed explicitly from another block via a procedure call,
while a trigger is executed implicitly whenever the triggering event happens.
The triggering event is either a INSERT, DELETE, or UPDATE command.
The timing can be either BEFORE or AFTER. The trigger can be either row-level or
statement-level, where the former fires once for each row affected by the triggering
statement and the latter fires once for the whole statement.
Reply With Quote
11-10-2007
#10
susarlasireesha
View Profile
View Forum Posts
Private Message
Expert Member
Join Date Apr 2007
Answers 500
Re: Views, Triggers, Normalization
Normalization is the process of efficiently organizing data in a database.
There are two goals of the normalization process: eliminating redundant data (for example, storing the same data in more than one table)
and ensuring data dependencies make sense (only storing related data in a table). Both of these are worthy goals as they reduce the amount
of space a database consumes and ensure that data is logically stored.
Reply With Quote
«
Previous Thread
|
Next Thread
»
Posting Permissions
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
[VIDEO] code is On
HTML code is On
Forum Rules
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
GeekInterview
GeekInterview
Learning Center
Online Quiz
Interview Questions
Interview Coaching
Interview eBook
Interact
Contact Us |
Geeks Discussions |
Archive |
Privacy Statement |
Top
All times are GMT -4. The time now is 02:19 PM.
Powered by vBulletin™
Search Engine Optimisation provided by
DragonByte SEO v2.0.37 (Lite) -
vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.Copyright © 2014 GeekInterview.com. All Rights Reserved