- a SQLite(3) database of flight records from West Virginia University
- download the current flights.db (345 MB)
- a web-accessible way to browse and query the database (with rich forms and SQL queries) using the Datsette project
- a static website built with Hugo to display trip, passenger, and invoice data in an enriched way with support for basic text searches
- a simple command-line tool to help project admins manage database updates from the various formats (in scanned PDFs) as used by the WVU Office of Procurement Contracting & Payment Services and the West Virginia State Auditor's Office.
- see ./cmd/wvuflights
See the Frequently Asked Questions in the repo wiki. Public questions & comments also available via email mailing list at ~abs/[email protected]
.
This project is released into the public domain via Creative Commons Zero. See the LICENSE file.
All information has been sourced from legal requests made under W.Va. Code § 29B-1-1 (WVFOIA)), and the intent is to keep the database updated on a rolling basis as information is released.
Current data includes 816 flights spanning from Jul 1, 2015 to Nov 12, 2023, with over $8.5 million dollars worth of flight costs. See ./data/schema.sql for the database schema.
trips by month | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View SQL QuerySELECT
months,
total_cost,
num_trips
FROM
(
SELECT
strftime('%Y-%m',
CASE
WHEN instr(trips.date, ';') > 0
THEN substr(trips.date, instr(trips.date, ';') + 1)
ELSE trips.date
END
) AS months,
PRINTF("$%,2d", SUM(fuel + landing + crew_expense + dom_tax + billing_amount)) AS total_cost,
COUNT(*) AS num_trips,
1 AS sort_order
FROM trips
GROUP BY months
UNION
SELECT
'Total' AS months,
PRINTF("$%,2d", SUM(fuel + landing + crew_expense + dom_tax + billing_amount)) AS total_cost,
COUNT(*) AS num_trips,
2 AS sort_order
FROM trips
) AS combined
ORDER BY sort_order, months DESC; |