haskell-relational-record/relational-record-examples/sql/5.1.2a.sh

10 lines
141 B
Bash
Raw Normal View History

2013-07-31 10:44:50 +04:00
#! /bin/bash
2014-12-15 07:56:39 +03:00
# Inner join
2014-12-12 08:44:11 +03:00
sqlite3 examples.db "
2013-07-31 10:44:50 +04:00
SELECT e.fname, e.lname, d.name
2014-12-10 10:18:07 +03:00
FROM employee e INNER JOIN department d
2013-07-31 10:44:50 +04:00
USING (dept_id)
;"