Skip to content

Commit

Permalink
Added SQL Query Files
Browse files Browse the repository at this point in the history
  • Loading branch information
cclarke411 committed Mar 7, 2019
1 parent 356390f commit 33ebc4b
Show file tree
Hide file tree
Showing 5 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions 2.4.1TestQuery
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT zipcode, AVG(estimated_home_price), MAX(days_on_market)
FROM recent_sales
GROUP BY zipcode;
3 changes: 3 additions & 0 deletions 2.5.1DrillMaxTemp
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT MAX(maxtemperaturef),zip
FROM weather
GROUP BY zip
4 changes: 4 additions & 0 deletions 2.5.2DrillTrips
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT COUNT(trip_id),zip_code
FROM trips
GROUP BY zip_code
ORDER BY zip_code
4 changes: 4 additions & 0 deletions 2.5.3DrillDuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
SELECT zip_code,MIN(duration)
FROM trips
GROUP BY zip_code,duration
ORDER BY duration ASC
3 changes: 3 additions & 0 deletions 2.5.5DrillAvgDuration
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
SELECT end_station, AVG(duration)
FROM trips
GROUP BY end_station

0 comments on commit 33ebc4b

Please sign in to comment.