DBMS MCQs Set20
DBMS MCQs Set20
3. Which SQL query returns all employees who earn more than every employee in department 10?
SELECT name FROM employee WHERE salary > ALL (SELECT salary FROM employee WHERE dept = 10);
A. Syntax error B. Valid and correct C. Returns NULL if dept 10 is empty D. Never returns any row
Answer: B
5. (GATE) A transaction T1 reads and writes a data item. T2 also writes the same item. What problem may occur?
A. Lost update B. Phantom read C. Dirty read D. Inconsistent analysis
Answer: A