Primary Key, Foreign Key, and Constraints – Ensuring data integrity.

    Question 1Primary Key - Uniqueness in RDBMS

    What is the main purpose of a Primary Key in a relational table?

    Question 2Foreign Key - Relationships in RDBMS

    What does a Foreign Key in a table do?

    Question 3NOT NULL Constraint - Column Rules in RDBMS

    Which constraint ensures that a column must always have a value?

    Question 4UNIQUE Constraint - Data Integrity in RDBMS

    What is the purpose of the UNIQUE constraint?

    Question 5CHECK Constraint - Validation in RDBMS

    Which constraint can be used to validate values before inserting into a column?

    Question 6DEFAULT Constraint - Automatic Values in RDBMS

    What does the DEFAULT constraint do?

    Question 7Composite Primary Key - Multiple Columns in RDBMS

    What is a composite primary key?

    Question 8Referential Integrity - Foreign Key Role in RDBMS

    What happens if a foreign key value does not match a primary key in the referenced table?

    Question 9Primary Key vs Unique Constraint - RDBMS

    Which of the following is true about Primary Key vs Unique?

    Question 10Importance of Constraints - Data Integrity in RDBMS

    Why are constraints like Primary Key, Foreign Key, and NOT NULL important?