view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
8 rows where "election_date" is on date 1989-09-11
This data as json, CSV (advanced)
Suggested facets: election_date (date)
country_name_short | country_name | election_type | election_date | vote_share | seats | seats_total | party_name_short | party_name | party_name_english | left_right | country_id | election_id | previous_parliament_election_id | previous_cabinet_id | party_id |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
NOR | Norway | parliament | 1989-09-11 | 34.3 | 63 | 165 | DNA | Det norske Arbeiderparti | Norwegian Labour Party | 3.3706 | 9 | 571 | 207 | 394 | 104 |
NOR | Norway | parliament | 1989-09-11 | 22.2 | 37 | 165 | H | Høyre | Conservative Party | 7.8994 | 9 | 571 | 207 | 394 | 1435 |
NOR | Norway | parliament | 1989-09-11 | 13.0 | 22 | 165 | Fr | Fremskrittspartiet | Progress Party | 8.7595 | 9 | 571 | 207 | 394 | 351 |
NOR | Norway | parliament | 1989-09-11 | 10.1 | 17 | 165 | SV | Sosialistisk Venstreparti | Socialist Left Party | 1.5839 | 9 | 571 | 207 | 394 | 81 |
NOR | Norway | parliament | 1989-09-11 | 8.5 | 14 | 165 | KrF | Kristelig Folkeparti | Christian Democratic Party | 5.8516 | 9 | 571 | 207 | 394 | 1538 |
NOR | Norway | parliament | 1989-09-11 | 6.5 | 11 | 165 | Sp | Senterpartiet | Centre Party | 4.6565 | 9 | 571 | 207 | 394 | 702 |
NOR | Norway | parliament | 1989-09-11 | 0.3 | 1 | 165 | one-seat | one seat | one seat | 9 | 571 | 207 | 394 | 474 | |
NOR | Norway | parliament | 1989-09-11 | 3.2 | 0 | 165 | V | Venstre | Liberal Party of Norway | 5.1467 | 9 | 571 | 207 | 394 | 647 |
Advanced export
JSON shape: default, array, newline-delimited
CREATE VIEW view_election AS SELECT c.name_short AS country_name_short, c.name AS country_name, ii.short AS election_type, e.date AS election_date, vote_share, seats, seats_total, p.name_short AS party_name_short, p.name AS party_name, p.name_english AS party_name_english, vpp.left_right AS left_right, e.country_id AS country_id, er.election_id AS election_id, e.previous_parliament_election_id AS previous_parliament_election_id, e.previous_cabinet_id AS previous_cabinet_id, er.party_id AS party_id FROM (SELECT * FROM election_result WHERE vote_share NOT NULL OR seats NOT NULL) er LEFT OUTER JOIN election e ON er.election_id = e.id LEFT OUTER JOIN party p ON er.party_id = p.id LEFT OUTER JOIN viewcalc_party_position AS vpp ON er.party_id = vpp.party_id LEFT OUTER JOIN country c ON e.country_id = c.id LEFT OUTER JOIN info_id ii ON e.type_id = ii.id ORDER BY c.name_short, e.date, er.seats DESC;