What is an outer apply? :upside_down_face:
# box-products
e
What is an outer apply? 🙃
d
it's a lateral join (??) that gives visibility to outer tables and to the result set in the where clause
Copy code
select *
from foo
outer apply ( select count(*) c from other_table where other_table.id = foo.id) as v
--                                                                      ^^^ visible
where v.c > 3
      ^^^ visible
is there a magic way to sneak it in with
raw
?
e
joinRaw