Giter Club home page Giter Club logo

interview_cake_sql's Introduction

SQL Skills

A notebook filled with SQL query practice I've done. Data comes from Interview Cake's practice cake bakery dataset.

Getting Started

Queries are called in Jupyter notebook and imported into pandas dataframes for visualization. Uses anaconda to manage the environment

Requirements

You'll need the following installed to run the analysis successfully:

  • Anaconda
  • PostgreSQL

Installation

First create the anaconda environment:

conda env create -f environment.yml -n sql-query-practice

Activate the environment:

$ source activate sql-query-practice

Next, run the get the data and sql table setup files.

curl -O https://static.interviewcake.com/bakery_schema_and_data.sql && mysql.server start && mysql -u root

Setup the database

source bakery_schema_and_data.sql;

Finally, start up Jupyter and visit localhost:8888 to see the analysis.

jupyter notebook

Data Sources

All data was taken from opendata sources.

asu data - https://moto.data.socrata.com/dataset/Arizona-State-University-Police-Department/6fzp-yqnh

tempe - https://data-tempegov.opendata.arcgis.com/datasets/02533928ed1649d2ac773c8ebf50f37d_1?geometry=-111.959%2C33.414%2C-111.899%2C33.426

Additional Info

To update project with new packages, add them to environment.yml, then type in

$ conda env update -f environment.yml -n sql-query-practice

interview_cake_sql's People

Contributors

seb-patron avatar

Watchers

 avatar  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.