SELECT * FROM Customers
WHERE Country LIKE '%ada%';
SELECT * FROM Customers_A
UNION
SELECT * FROM Customers_B;
SELECT * FROM Customers_A
EXCEPT
SELECT * FROM Customers_B;
awk -F ',' '{print $2, $1}' R
SELECT * FROM R, S;
Kartesisches Produkt
Selektion
Projektion
cat · sed · grep · cut · awk · join · comm · diff · uniq · sort
"Do one thing and do it well"
"Relational algebra can turn any
shell into a respectable database."
Matt Might - SQL in the Shell
Martin Funk · @eigenfunk