Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started