multi_usage_cross_join.sql 211 B

12345678910111213
  1. --!syntax_pg
  2. with foo(x) as (
  3. select 1 as x
  4. )
  5. select count(*) from foo a,foo b
  6. where a.x=b.x and a.x<2;
  7. with foo(x) as (
  8. select 1 as x
  9. )
  10. select count(*) from foo a,foo b
  11. where a.x=b.x and a.x>1;