what is Constraint? How many types of constraints in SQL ?

Answer Posted / rohit nanda

A constraint is a property assigned to a column or the set
of columns in a table that prevents certain types of
inconsistent data values from being placed in the columns.

There are 4 Types of Constraints.
• Entity Integrity - Primary and Unique
• Domain Integrity - Default, Check and Not Null
• Referential integrity – Foreign Key
• User-Defined Integrity - enforces some specific

Is This Answer Correct ?    7 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is recompile sql server?

772


How do I install sql server?

634


what types of replication are supported in sql server? : Sql server database administration

673


What is an example of a primary key?

704


What Are the Main Features of SQL Azure?

109


What is the bookmark lookup and rid lookup?

758


What is blocking?

729


List the ways in which dynamic sql can be executed?

796


Thanks to some maintenance being done, the sql server on a failover cluster needs to be brought down. How do you bring the sql server down?

713


What is the Disadvantage of indexed sequential file.

795


what are the reporting service components in SSRS?

139


How to use the inserted and deleted pseudo tables?

725


What is the federation in sql azure?

91


why would you call update statistics? : Sql server database administration

749


What is a covered index?

715