Code Monkey home page Code Monkey logo

college-data-explorer's Introduction

College Data Examiner

Exploratory Dashboard to view College Data and it's relationships with Crime Data

Features

Lot's of added functionality and features:

  • Modern Design [MEAN stack but with MySql]
  • All interactions over restful API's or Websockets
  • Modern responsive material design
  • Promisified DB custom adapter for ASYNC awesomeness with queries
  • Leveraging Heroku and Google Cloud Engine

Disclaimer

For best results please use the latest version of Google Chrome

ER Diagram

Er Diagram

Tables

name rows
colleges id*,sector**,name,state**,calendar_type,2011_12_price,2013_14_price,price_pct_change
sectors id*,name
state_crime abr*,name,population,violent_crime_rate,murder_rate,rape_rate,robbery_rate,aggravated_assault_rate,property_crime_rate,burglary_rate,theft_rate,motor_theft_rate

Note:

  • * means PK
  • ** means FK

Queries:

  • SELECT name,2013_14_price as tuition FROM colleges order by tuition DESC limit 1
  • SELECT name,2013_14_price as tuition FROM colleges order by tuition limit 1
  • SELECT name as state,property_crime_rate+violent_crime_rate as crime from state_crime order by crime DESC limit 1
  • SELECT name as state,property_crime_rate+violent_crime_rate as crime from state_crime order by crime limit 1
  • select state, tuition, violent_crime_rate as vcrime, property_crime_rate as pcrime from state_crime s, (select state,avg(2013_14_price) as tuition from colleges group by state) t where s.abr=t.state
  • select name as state,population as pop,violent_crime_rate+property_crime_rate as crime from state_crime
  • select s.name as sector,round(avg(2013_14_price),2) as tuition from sectors s, colleges c where c.sector=s.id group by sector
  • SELECT calendar_type,count(*) as count FROM colleges group by calendar_type
  • SELECT s.*,count(*) as colleges,avg(c.2013_14_price) as avg_tuition FROM state_crime s,colleges c where c.state=s.abr and c.state=? group by s.abr
  • select state,count(*) as c from colleges group by state
  • select max(2013_14_price) as max,min(2013_14_price) as min from colleges
  • select name from sectors
  • select distinct state from colleges
  • select c.name as college,s.name as sector,state,2011_12_price,2013_14_price,price_pct_change from colleges c,sectors s where c.sector=s.id and 2013_14_price >= ? and 2013_14_price <= ?

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.