Data update

This commit is contained in:
Ingy döt Net 2025-08-11 18:05:26 -07:00
parent 4d5544505c
commit 4924dd0264
3073 changed files with 55820 additions and 4408 deletions

View file

@ -0,0 +1,5 @@
create or replace table s (id INTEGER UNIQUE NOT NULL);
create or replace table t (id INTEGER UNIQUE NOT NULL);
insert into s from generate_series(1,10);
insert into t from generate_series(5,15);

View file

@ -0,0 +1 @@
from s union from t;

View file

@ -0,0 +1 @@
from s INTERSECT from t;

View file

@ -0,0 +1 @@
select count() as n from (from s INTERSECT from t);

View file

@ -0,0 +1 @@
from s EXCEPT from t;

View file

@ -0,0 +1,2 @@
select count() from
( (from s EXCEPT from t) UNION (from t EXCEPT from s));

View file

@ -0,0 +1,2 @@
select (EXISTS (from s where NOT EXISTS (from t where s.id=t.id))) or
(EXISTS (from t where NOT EXISTS (from s where s.id=t.id)) );

View file

@ -0,0 +1,2 @@
select NOT EXISTS
(from s where NOT EXISTS (from t where s.id = t.id));

View file

@ -0,0 +1 @@
select NOT EXISTS (from s EXCEPT from t);