From 79be768307cb8f32ac4089ed01e95ccae10ea620 Mon Sep 17 00:00:00 2001 From: Jesse Mortenson Date: Tue, 5 Nov 2024 16:16:50 -0600 Subject: [PATCH] Query doc: add bill_subjects view --- docs/data/query-scraper-output-data.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/docs/data/query-scraper-output-data.md b/docs/data/query-scraper-output-data.md index 17b4469..3e432f4 100644 --- a/docs/data/query-scraper-output-data.md +++ b/docs/data/query-scraper-output-data.md @@ -111,6 +111,10 @@ FROM bills; CREATE VIEW bill_version_links AS SELECT legislative_session, bill_identifier, bill_id, unnest(links, recursive := true) FROM bill_versions; +CREATE VIEW bill_subjects AS +SELECT legislative_session, identifier AS bill_identifier, _id AS bill_id, unnest(subject) AS subject +FROM bills; + -- Vote Events CREATE VIEW vote_events AS