You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An emulation could be done via FULL OUTER JOIN. Example:
with a as (select*from unnest(array[1, 2, 3, 4, 6]) a(a)),
b as (select*from unnest(array[1, 2, 2, 3, 4, 5]) b(b))
select*from a full outer join b ona.a=b.bwherea.a is nullorb.b is null
The above would yield:
a b
-----
6
5
So, in other words, the EQUAL operation could be emulated like this:
with a as (select*from unnest(array[1, 2, 3, 4, 6]) a(a)),
b as (select*from unnest(array[1, 2, 2, 3, 4, 5]) b(b))
selectcount(*) =0from a full outer join b ona.a=b.bwherea.a is nullorb.b is null
The text was updated successfully, but these errors were encountered:
SQL is really missing a couple of useful set operations, such as
=
,<>
. For exampleAn emulation could be done via
FULL OUTER JOIN
. Example:The above would yield:
So, in other words, the
EQUAL
operation could be emulated like this:The text was updated successfully, but these errors were encountered: