How to use CTE in another CTE

with report as (
      <your query here>
     ),
     reportLimited as (
      select *
      from report
      where foo = value
    )
select *
from reportLimited

Write an Article
If you log in, you will be notified when someone leaves a comment.

Other users would like to know if this solution helped you.


© 2022 - ErnesTech - Privacy