Primary Key Constraints Not Null Constraints Check Constraints Unique Constraints
Primary Key Constraints Not Null Constraints Check Constraints Unique Constraints
number and a manager to report to, they force data to conform to certain rules. There are five different constraints
Primary key constraints Not Null constraints Check constraints Unique constraints A primary key is basically a key which is Not Null and Unique A tables column cannot be Null, it must contain a value Ensure that a tables column is within some parameters that you have specified, for example a employee's salary must not exceed !!,!!!" Ensure the uniqueness of the rows in the table, for example national insurance number would be unique to each employee Ensure that values for certain important columns make sense basically cross referencin# other tables, for example confirm that the department exists in the department table" $he reference is know as a forei#n key and the table is the child table which the actual data held in the parent table" %t is possible for a table to have a self referential inte#rity constraint"