Six types of constraints
- Primary Key Constraint (Candidate Key)
- Does not allow the entry of Null values
- Does not allow the entry of duplicate values
- Primary Key is the column that uniquely identifies a Row in a table
- Unique Key Constraint
- Does not allow the duplicate values
- Does allow the Null values
- Unique Key is the column that identifies a row in the table
- Foreign Key Constraint (Integrity Constraint)
- FK is the column that is derived from the primary key column of the previous table
- Default Constraint
- Boolean Values (True/False, M/F)
- Not Null Constraint
- Does not allow the entry of Null values
- Check Constraint
- A conditional statement with aggregate functions
- Where condition and Having clause together
- Having clause will be used for Aggregate functions