I have two Oracle SQL Tables:
Team and Work.
I want to select all the columns from the team table (this is fine) for three teams that appeart the most in the work table.
Team (teamId, name)
Work(workId, name, teamId).
I really don’t know how to select from count max.
my first idea was to group the work table by the count of teamId but I can’t group in a subquery…
Hope everything is clear, if not let me know.
Should be something like this (not quite sure about syntax):