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

Answer Posted / pandia rajan

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 column
(s). Constraints are used to enforce the data integrity.
This ensures the accuracy and reliability of the data in
the database

CONSTRAINT=The threat or use of force to prevent, restrict,
or dictate the action or thought of others.

there are 7 types of constraints are there and they are
grouped in to 4 types. They are

TYPES GROUP
1.DEFAULT = DOMAIN INTEGRITY
2.NOT NULL = DOMAIN INTEGRITY
3.CHECK = DOMAIN INTEGRITY
4.FOREIGN KEY = REFERENTIAL INTEGRITY
5.UNIQUE KEY = ENTITY INTEGRITY
6.PRIMARY KEY = DOMAIN INTEGRITY
7.RULE = USER DEFINED INTEGRITY

Is This Answer Correct ?    8 Yes 10 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between dbcc indexdefrag and dbcc reindex?

527


When to use null data driven subscription?

148


What is blocking and how would you troubleshoot it? : sql server database administration

595


How to add a new dsn with the odbc driver for sql server?

557


Write down the syntax and an example for create, rename and delete index?

538






How to delete duplicate rows?

557


what is difference between view and Dip.

2003


How much memory that we are using in Logshipping Concept?

1370


How to update muliple row in single query?

613


What is report server project?

106


How many tables can be joined in SQL Server?

594


What number aggregate functions are accessible there in sql?

595


What is an expensive query?

540


What is read uncmmited?

583


What does it mean to invest in the index?

513