- a SQLite(3) database of purchase records from West Virginia University
- see the Releases tab to download the current purchases.db
- a web-accessible way to browse and query the database using the Datsette project
- a simple command-line tool to help project admins manage database updates from the various formats (in Excel) used by the WVU Office of Procurement Contracting & Payment Services
This project is released into the public domain via Creative Commons Zero. See the LICENSE file.
All information has been sourced from WVU over the course of many years via WVFOIA (W.Va. Code § 29B-1-1) (w/ special thanks to Walter Hardy), and the intent is to keep the database updated on a rolling fiscal year basis as the University releases information.
Current data spans from Oct 3, 2010 to Dec 2, 2021⁺, with over $2 billion dollars worth of transactions. See ./data/schema.sql for database schema.
procurement_records | ||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
View SQL QuerySELECT
strftime('%Y', approved_date) AS year,
printf('%s thru %s', MIN(approved_date), MAX(approved_date)) AS date_range,
printf('%,d', count(*)) as count,
printf('$%,.2f', SUM(amount)) AS total_amount
FROM
procurement_records
GROUP BY
strftime('%Y', approved_date)
UNION ALL
SELECT
'Total' AS year,
NULL as date_range,
printf('%,d', count(*)) AS count,
printf('$%,.2f', SUM(amount)) AS total_amount
FROM
procurement_records
ORDER BY
year; | ||||||||||||||||||||||||||||||||||||||||||||
pcard_records | ||||||||||||||||||||||||||||||||||||||||||||
View SQL QuerySELECT
strftime('%Y', trans_date) AS year,
printf('%s thru %s', MIN(trans_date), MAX(trans_date)) AS date_range,
printf('%,d', count(*)) as count,
printf('$%,.2f', SUM(trans_amount)) AS total_amount
FROM
pcard_records
GROUP BY
strftime('%Y', trans_date)
UNION ALL
SELECT
'Total' AS year,
NULL as date_range,
printf('%,d', count(*)) AS count,
printf('$%,.2f', SUM(trans_amount)) AS total_amount
FROM
pcard_records
ORDER BY
year; |