7.9.13. SQL-12b — Set operations
Set operations stack two SELECT queries with compatible projections
and dedupe / intersect / subtract their result rows. Under
_sql(...) the existing daslib/linq.das array/iterator
functions union, intersect, and except are recognized
by the emitter and lowered to the matching SQL set-op:
Source shape |
Emitted SQL |
|---|---|
|
|
|
|
|
|
Both sides must project the same column shape (same column count
and types). Use _select(_.Col) to pin the shape explicitly when
the sources have different schemas.