Class 12 Computer Science: Advanced SQL and Database Concepts
Answer the questions and tap Submit to see your score. Your progress is auto-saved on this device.
Jump to question
Q1 · MCQ · 1 mark
Which of the following SQL clauses is used to retrieve data from multiple tables based on a related column between them?
Q2 · MCQ · 1 mark
In a relational database, what is the primary purpose of normalization?
Q3 · MCQ · 1 mark
Which of the following ACID properties ensures that either all operations within a transaction complete successfully, or none of them do?
Q4 · MCQ · 1 mark
Consider a table 'Employees' with columns 'EmpID' (PRIMARY KEY), 'EmpName', 'DeptID'. Another table 'Departments' with columns 'DeptID' (PRIMARY KEY), 'DeptName'. Which type of JOIN would typically be used to list all employees along with their department names, even if some departments have no employees?
Q5 · MCQ · 1 mark
Which SQL command is used to grant specific permissions to a user on a database object?
Q6 · FILL · 1 mark
The process of breaking down a complex table into smaller, well-structured tables to eliminate data redundancy and improve data integrity is known as ____.
Q7 · FILL · 1 mark
A ____ key is a set of one or more attributes that uniquely identifies a tuple in a table.
Q8 · FILL · 1 mark
The SQL command to remove an entire database from the DBMS is ____.
Q9 · SHORT · 2 marks
Explain the difference between a primary key and a foreign key.
Q10 · SHORT · 2 marks
What is the purpose of the 'HAVING' clause in SQL?