Skip to content

Commit

Permalink
Query output: add vote_sources view
Browse files Browse the repository at this point in the history
  • Loading branch information
jessemortenson committed Nov 5, 2024
1 parent f468195 commit 1f2f1b5
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docs/data/query-scraper-output-data.md
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,13 @@ SELECT legislative_session,
_id AS vote_id,
unnest(counts, recursive := true)
FROM vote_events;
CREATE VIEW vote_sources AS
SELECT legislative_session,
bill_identifier,
identifier AS vote_identifier,
_id AS vote_id,
unnest(sources, recursive := true)
FROM vote_events;

-- Events
CREATE VIEW events AS
Expand Down

0 comments on commit 1f2f1b5

Please sign in to comment.