Skip to content

Commit a41d98a

Browse files
committed
docs: add UNION (dedup) example to SQL set operations section
Only UNION ALL was shown in the example. Added UNION without ALL to clarify that deduplicating set union is also supported.
1 parent 891b080 commit a41d98a

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

docs/src/content/docs/sql.mdx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,8 @@ Simple CTEs (no aggregation, no sort+limit) are inlined — their filters merge
115115
### Set operations
116116

117117
```sql
118-
SELECT * FROM orders_2025 UNION ALL SELECT * FROM orders_2026
118+
SELECT * FROM orders_2025 UNION ALL SELECT * FROM orders_2026 -- keeps duplicates
119+
SELECT * FROM orders_2025 UNION SELECT * FROM orders_2026 -- deduplicates
119120
SELECT region FROM orders INTERSECT SELECT region FROM users
120121
SELECT id FROM orders EXCEPT SELECT id FROM refunds
121122
```

0 commit comments

Comments
 (0)