The following query is executed:
select count(*) from everything where num not in (select num from sometable)
The following query should be equivalent to the one above, but results in an "invalid identifier" error:
with unwanted as (select num from sometable) select count(*) from everything where num not in unwanted
What happened to the second request?
source share