1 comment

[ 2.4 ms ] story [ 15.6 ms ] thread
Here's an example snippet you can try out in the fiddle:

    WITH x AS (
      SELECT 1 AS foo
      UNION ALL
      SELECT 2 AS foo
    )

    FROM x
    SELECT *
    WHERE foo > 1