mirror of
https://github.com/khibino/haskell-relational-record.git
synced 2024-12-01 13:52:12 +03:00
15 lines
238 B
Bash
15 lines
238 B
Bash
#! /bin/bash
|
|
|
|
#Sorting compound query results
|
|
|
|
sqlite3 examples.db "
|
|
SELECT emp_id, assigned_branch_id
|
|
FROM employee
|
|
WHERE title = 'Teller'
|
|
UNION
|
|
SELECT open_emp_id, open_branch_id
|
|
FROM account
|
|
WHERE product_cd = 'SAV'
|
|
ORDER BY emp_id
|
|
;"
|