Home > DeveloperSection > Interviews > Define and discuss data constraints.

Posted on    August-24-2014 11:56 PM

 MSSQL Server MSSQL Server 
 1 Answer(s)
  662  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Posted on    August-24-2014 12:00 AM

Data constraints on a column are the limits put on the values the data can have.

 There are four types of data constraints:

 (1) domain constraints, which define a limited set of values for the column, 

(2) range constraints, which specify that the values must fall within a certain range,

 (3) intrarelation constraints, which define what values the column can have based on values of other columns in the same table, and 

(4) interrelation constraints, which define values the column can have based on values of columns in other tables.

Don't want to miss updates? Please click the below button!

Follow MindStick