For example, the following nested SQL query cannot be unnested:

SELECT AVG(salary)

FROM

( SELECT DISTINCT department, salary

FROM emp

)

Similar questions and discussions