Q1
SQL is primarily used to:
Q2
A primary key should:
Q3
Which statement best describes a foreign key?
Q4
Which option correctly compares `WHERE` and `HAVING`?
Q5
Which statement about `DELETE`, `TRUNCATE`, and `DROP` is correct?
Q6
In SQL, `NULL` means:
Q7
Which condition is correct for checking missing values in SQL?
Q8
`GROUP BY` is mainly used to:
Q9
An `INNER JOIN` returns:
Q10
A `LEFT JOIN` returns:
Q11
A self join is used when:
Q12
`UNION` differs from `UNION ALL` because `UNION`:
Q13
A subquery is:
Q14
Which statement best compares `IN` and `EXISTS`?
Q15
A CTE is introduced using:
Q16
To list all customers even if they have no matching orders, which join is most appropriate?
Q17
Which of the following is an aggregate function?
Q18
If a column contains nulls, `COUNT(column)` will:
Q19
`COUNT(*)` returns:
Q20
A window function differs from `GROUP BY` mainly because it:
Q21
Which function gives every row a unique running number even when values tie?
Q22
Which function leaves gaps in ranking after tied values?
Q23
Which tool is commonly used to assign labels like 'High', 'Medium', and 'Low' in query output?
Q24
If you only want unique rows in the query result, which keyword is most direct?
Q25
Normalization is mainly used to:
Q26
1NF mainly requires that:
Q27
Denormalization is usually considered when:
Q28
A composite key uses:
Q29
Which of the following is a constraint?
Q30
Which statement best describes a view?
Q31
An index is mainly created to:
Q32
Which statement about indexes is correct?
Q33
A transaction is best described as:
Q34
In ACID, atomicity means:
Q35
Which ACID property is most directly about committed data surviving a crash?
Q36
Which command makes current transaction changes permanent?
Q37
Which command is used to undo uncommitted transaction work?
Q38
A `SAVEPOINT` is useful because it:
Q39
Isolation levels mainly control:
Q40
A strong first step for tuning a slow SQL query is to: