Advertisement
deniswhite77

Untitled

Feb 16th, 2022
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT avg(i.count)
  2. FROM
  3. (SELECT a.title,
  4.     COUNT(tr.track_id)
  5. FROM album AS a
  6. LEFT OUTER JOIN track AS tr ON a.album_id = tr.album_id
  7. WHERE a.title LIKE '%Rock%'
  8. GROUP BY a.title) as i
  9. WHERE i.count >= 8
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement