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
What is a data collection table?
What do you understand by user-defined function in the sql server and explain the steps to create and execute a user-defined function in the sql server?
What are the two modes of authentication in sql server?
What is the difference between dbcc indexdefrag and dbcc reindex?
Which sql server table is used to hold the stored procedure scripts?
How to download microsoft sql server 2005 express edition?
what are database files and filegroups? : Sql server database administration
While using a cursor, how can you differentiate between a deleted row and a row that has been inserted with null data values?
What is hierarchy, what are its types and difference between them? : sql server analysis services, ssas
What are three major types of constraints?
What is xml datatype?
define and explain the differences between clustered and non-clustered indexes.
When columns are added to existing tables, what do they initially contain?
Is sql server is free?
What type of locking occurs during the snapshot generation? : sql server replication