Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 2 subjective questions Relational query language

INT306 — Database Management Systems 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

    What is Data Definition Language (DDL)? Explain its primary commands with their syntax.

  2. Question 2 of 20

    Differentiate between the DROP and TRUNCATE commands in SQL.

  3. Question 3 of 20

    Explain the ALTER TABLE command and discuss how it can be used to add, modify, and drop columns.

  4. Question 4 of 20

    Define Data Manipulation Language (DML). Distinguish between procedural and non-procedural DML.

  5. Question 5 of 20

    Describe the core DML commands (INSERT, UPDATE, DELETE) with examples.

  6. Question 6 of 20

    Compare and contrast the DELETE and TRUNCATE commands in SQL.

  7. Question 7 of 20

    What is Data Control Language (DCL)? Explain its two main commands.

  8. Question 8 of 20

    Discuss Transaction Control Language (TCL) and explain its primary commands: COMMIT, ROLLBACK, and SAVEPOINT.

  9. Question 9 of 20

    Explain the concept of database integrity. What are the three main types of integrity constraints?

  10. Question 10 of 20

    Define Referential Integrity and explain how it is enforced in SQL using Foreign Keys.

  11. Question 11 of 20

    Explain the CHECK and DEFAULT constraints with SQL syntax examples.

  12. Question 12 of 20

    What is the difference between the UNIQUE and NOT NULL constraints? Can they be used together?

  13. Question 13 of 20

    Define and differentiate between Super Key, Candidate Key, and Primary Key in a relational database.

  14. Question 14 of 20

    What is a Foreign Key? Explain its significance with an example.

  15. Question 15 of 20

    Differentiate between a Primary Key and a Unique Key constraint.

  16. Question 16 of 20

    Explain the concepts of Alternate Key and Composite Key.

  17. Question 17 of 20

    Describe the basic structure of an SQL query using SELECT, FROM, and WHERE. Explain the logical order of execution.

  18. Question 18 of 20

    Discuss the five basic aggregate functions in SQL with their purposes.

  19. Question 19 of 20

    Explain the use of GROUP BY and HAVING clauses in SQL with a practical example.

  20. Question 20 of 20

    What are SQL aliases? Explain column aliases and table aliases with syntax.

That's unit 2

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.