Question: Using the WHERE and HAVING clauses, filter the track table for the tracks with the media _ type _ id set to 1 , grouped
Using the WHERE and HAVING clauses, filter the track table for the tracks with the mediatypeid set to grouped by the genreid having the number of tracks greater than Provide the list of genreid's and the count of tracks that fit these criteria.
Which of the following queries would provide the correct results?
a
SELECT genreid counttrackid
FROM track
WHERE mediatypeid
GROUP BY genreid
HAVING counttrackid
b
SELECT genreid counttrackid
FROM track
WHERE mediatypeid
HAVING counttrackid
GROUP BY genreid
c
SELECT genreid sumtrackid
FROM track
WHERE mediatypeid
GROUP BY genreid
HAVING sumtrackid
d
SELECT genreid counttrackid
FROM track
WHERE counttrackid
GROUP BY genreid
HAVING mediatypeid
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
