Skip to content
Advertisement

Subquery as Join?

My query is shown below.

Is it possible to represent the subquery as a join in the FROM clause? I work with the “denodo” tool, where I cannot easily do the subquery in the from clause.

Advertisement

Answer

You can transfer your Sub Query to a CTE as below-

Also you can put your Sub query directly in the WINDOW function in the Partition part as below-

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