Skip to content
Advertisement

Can you join by columns with aggregate functions?

Is it possible to join by aggregate functions?

Let’s say we have in the main query:

And I’m joining a subquery with all the info about products:

JOIN (some subquery) SUB ON LOG_TABLE.MINID=SUB.ID

Advertisement

Answer

You can do the following

User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement