What does a CHECK constraint do?
- ARejects rows whose values do not satisfy a condition
- BChecks whether a table exists before a query is run on it
- CVerifies the user's password
- DCounts the rows in a table
What does a CHECK constraint do?
Which keyword gives a column or table a temporary alternative name in a query?
What does NULL represent in SQL?
When is WHERE EXISTS (subquery) true for a row?
Table a has 3 rows and table b has 4 rows. How many rows does SELECT * FROM a CROSS JOIN b return?
What does SELECT COALESCE(phone, 'unknown') FROM customers return for a customer whose phone is NULL?
Which window function assigns 1, 2, 3, ... to rows within each partition without ties?
R(A, B, C, D) has the functional dependencies A → B and C → D. What is the candidate key?
Full step-by-step solutions: practise this topic on examproblems.com.