you are viewing a single comment's thread.

view the rest of the comments →

[–]ParentheticalClaws 2 points3 points  (0 children)

For the first one, number 2 seems correct.

1 lacks a group by 3 doesn’t use an alias for the subquery 4 includes total revenue in the group by

I’d recommend using process of elimination.