Why does SELECT dept FROM Emp WHERE AVG(salary) > 5000 GROUP BY dept fail, while the same condition written in HAVING works?
Correct answer A. WHERE filters individual rows before groups and aggregates exist
Topic / 89 questions
Page 3 of DBMS and SQL multiple-choice questions with answers. Tap an option to check yourself.
Page 3 of 5
Correct answer A. WHERE filters individual rows before groups and aggregates exist
Correct answer C. '___k'
Correct answer A. FULL OUTER JOIN
Correct answer D. It refers to a column of the outer query, so it is evaluated for each outer row
Correct answer C. Only in the leaf nodes, which are linked together
Correct answer B. The insert succeeds, because a NULL foreign key is not checked
Correct answer D. The delete is rejected with a foreign key violation
Correct answer C. Entity integrity
Correct answer B. 4
Correct answer B. Composite key
Correct answer C. Alternate keys
Correct answer D. 3
Correct answer D. 40
Correct answer C. 2
Correct answer C. 3
Correct answer A. 1
Correct answer A. NULL
Correct answer B. 0
Correct answer A. Bina, Ali
Correct answer A. 4000