should be it
This commit is contained in:
27
external/duckdb/test/sql/setops/test_except.test
vendored
Normal file
27
external/duckdb/test/sql/setops/test_except.test
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
# name: test/sql/setops/test_except.test
|
||||
# description: Test EXCEPT / INTERSECT
|
||||
# group: [setops]
|
||||
|
||||
statement ok
|
||||
CREATE TABLE a(i INTEGER)
|
||||
|
||||
statement ok
|
||||
INSERT INTO a VALUES (41), (42), (43)
|
||||
|
||||
statement ok
|
||||
CREATE TABLE b(i INTEGER)
|
||||
|
||||
statement ok
|
||||
INSERT INTO b VALUES (40), (43), (43)
|
||||
|
||||
query I
|
||||
select * from a except select * from b order by 1
|
||||
----
|
||||
41
|
||||
42
|
||||
|
||||
query I
|
||||
select * from a intersect select * from b
|
||||
----
|
||||
43
|
||||
|
||||
Reference in New Issue
Block a user