Question: Using the WHERE and HAVING clauses, filter the track table for the tracks having the genre _ id set to 1 or 2 , grouped
Using the WHERE and HAVING clauses, filter the track table for the tracks having the genreid set to or grouped by the albumid with a number of tracks greater than Provide the list of albumid's and the sum of unitprice that fit these criteria.
Which of the following queries would provide the correct results?
SELECT albumid sumunitprice
FROM track
WHERE genreid in
GROUP BY albumid
HAVING counttrackid
SELECT albumid sumunitprice
FROM track
WHERE counttrackid
GROUP BY albumid
HAVING genreid in
SELECT albumid sumunitprice
FROM track
HAVING counttrackid
WHERE genreid in
GROUP BY albumid
SELECT albumid countunitprice
FROM track
WHERE genreid in
GROUP BY albumid
HAVING sumtrackid
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
