A SQL refresher sprint working against the Wavelength listening database. Covers subqueries, CTEs, window functions, and CREATE TABLE AS.
psql -c "CREATE DATABASE wavelength;"psql -d wavelength -f seed.sqlThis drops and recreates all tables, then inserts the full dataset. It is safe to run multiple times.
psql -d wavelength -c "SELECT COUNT(*) FROM listening_events;"You should see a count of 18.
psql -d wavelength -f src/queries.sql
psql -d wavelength -f src/create_tables.sql