SQLite3

A very convenient and light-weight database used as a backend for many systems (e.g forge in Emacs; org-roam in Emacs).

SQL queries against CSV

Thanks to this tweet I learnt you can run SQLIte3 queries directly against CSV files.

snippet.bash
sqlite3 :memory: -cmd '.mode csv' -cmd '.import taxi.csv taxi' -cmd '.mode column' 'SELECT passenged_count, COUNT(*), AVG(total_amount) FROM taxi GROUP BY passenger count'

Links

sql/sql.txt · Last modified: 2022/06/21 17:53 by admin
CC Attribution-Share Alike 4.0 International
Driven by DokuWiki Recent changes RSS feed Valid CSS Valid XHTML 1.0