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

11 lines
144 B
Bash

#! /bin/bash
# Grouping
sqlite3 examples.db "
SELECT open_emp_id, COUNT(*) how_many
FROM account
GROUP BY open_emp_id
ORDER BY open_emp_id
;"