Question: The queries given below are for finding out the count of books under categories ( 5 ) excluding the Novel category. Estimate which one of
The queries given below are for finding out the count of books under categories excluding the "Novel" category. Estimate which one of the two queries A or B will give better performance and explain why
Query A:
SELECT Category, COUNT FROM BOOK
WHERE Category "Novel":
GROUP BY Category,
Query B:
SELECT Category, COUNT
FROM BOOK
GROUP BY Category HAVING Category "Novel",
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
