haskell-relational-record/relational-record-examples/sql/5.1.2a.sh
2014-12-15 13:56:39 +09:00

10 lines
141 B
Bash

#! /bin/bash
# Inner join
sqlite3 examples.db "
SELECT e.fname, e.lname, d.name
FROM employee e INNER JOIN department d
USING (dept_id)
;"