haskell-relational-record/relational-record-examples/sql/4.3.2.sh
2014-12-15 17:24:32 +09:00

10 lines
205 B
Bash

#! /bin/bash
# Range condition with the between operator
sqlite3 examples.db "
SELECT emp_id, fname, lname, start_date FROM employee
WHERE start_date
BETWEEN date('2001-01-01') AND date('2002-12-31')
;"