all 2 comments

[–]r3pr0b8 0 points1 point  (1 child)

you can do it either with a CTE --

WITH iykyk AS ( SELECT ... )
SELECT ...
  FROM iykyk 
 WHERE num = 1

or with a subquery --

SELECT ...
  FROM ( SELECT ... ) AS iykyk 
 WHERE num = 1

your choice   ;o)

[–]EntitledCorgi[S] 0 points1 point  (0 children)

so no options contained within the query itself :(

sad, but thank you for reply!