view_election (view)
Data source: ParlGov · About: simonw/parlgov-datasette
8 rows where "election_date" is on date 1947-10-28
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 |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
DNK | Denmark | parliament | 1947-10-28 | 40.0 | 57 | 150 | Sd | Socialdemokraterne | Social Democrats | 3.8011 | 21 | 541 | 121 | 387 | 1629 |
DNK | Denmark | parliament | 1947-10-28 | 27.58 | 49 | 150 | V | Venstre | Liberal Party | 7.292 | 21 | 541 | 121 | 387 | 1605 |
DNK | Denmark | parliament | 1947-10-28 | 12.4 | 17 | 150 | KF | Konservative | Conservatives | 7.2186 | 21 | 541 | 121 | 387 | 590 |
DNK | Denmark | parliament | 1947-10-28 | 6.9 | 10 | 150 | RV | Det Radikale Venstre | Danish Social Liberal Party | 4.8736 | 21 | 541 | 121 | 387 | 211 |
DNK | Denmark | parliament | 1947-10-28 | 6.8 | 9 | 150 | DKP | Danmarks Kommunistiske Parti | Communist Party of Denmark | 1.0 | 21 | 541 | 121 | 387 | 1239 |
DNK | Denmark | parliament | 1947-10-28 | 4.5 | 6 | 150 | RF | Retsforbund | Justice Party | 6.0 | 21 | 541 | 121 | 387 | 1606 |
DNK | Denmark | parliament | 1947-10-28 | 2 | 150 | GrFa | Grønland og Færøerne | Greenland and Faroe Islands | 21 | 541 | 121 | 387 | 1634 | ||
DNK | Denmark | parliament | 1947-10-28 | 1.2 | 0 | 150 | DS | Dansk Samling | Danish Union | 8.8 | 21 | 541 | 121 | 387 | 412 |
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;