Code Monkey home page Code Monkey logo

canadianelectionresults's Introduction

CanadianElectionResults

A Microsoft SQL database of election results for 2015 and 2019 and the SSIS package to generate them from raw Elections Canada data.

If all you want is the data, uncompress the SQL script in the file ElectionResults_WithData.zip and execute it using SQL Server Management Studio. It will create the ElectionResults database and populate it with results for 2015 and 2019. Examine the view definitions for the views named SummaryResults and PollResults to get started using this database.

To execute the SSIS package:

  1. Modify the OLEDB connection manager to point at an empty ElectionResults database (i.e. without table data)
  2. Set the package variable "Year" to the election year for the EC files you have downloaded (for 2019 files see https://www.elections.ca/content.aspx?section=res&dir=rep/off/43gedata&document=bypro&lang=e - download the format 2 files for the geography you are interested in.)
  3. Configure the Foreach Loop named "Loop EC Files" to enumerate through the files you've downloaded by setting the enumerator configuration to point to the target folder

There is no need to execute the package if all you're interested in is poll-by-poll data for 2015 and 2019 - that data has already been processed and is embedded in the .SQL file named above.

canadianelectionresults's People

Contributors

dsartori avatar

Stargazers

Lee MG Junior avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.