What are constraints? Explain different types of
constraints?

Answer Posted / ravi gupta

constraint define rules that must be followed to maintain
consistency and correctness of data.a constraint can either
be created while creating a table or can be added later.
constraint can be divided into the following types:--
(1)primary key constraint.
(2)unique constraint.
(3)foreign key constraint.
(4)check constraint.
(5)default constraint.

Is This Answer Correct ?    4 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

In case you have filters in your report, when filters will be applied in cached report instance?

79


How to define and use table alias names in ms sql server?

560


What is an indexed view?

579


What is wide table?

535


What is the process of indexing?

512






Which operator do you use to return all of the rows from one query except rows are returned in a second query?

564


can an automatic recovery be initiated by a user? : Sql server administration

516


What is a unique index?

525


How to execute the cursor queries with "open" statements?

611


What is ms sql server service broker?

513


You want to implement the one-to-one relationship while designing tables. How would you do it?

528


Can an entity have two primary keys?

522


How do you make a trace?

580


When would you use an insert into .. Select option versus an insert into .. Values option? Give an example of each?

646


What is the syntax to execute the sys.dm_db_missing_index_details? : sql server database administration

620