Using pgSQL:
1) how many trips total were taken between the hours of 4:00 am and 6:00 am, and what was the average temperature of that day? I want a single overall query containing all the information. You should have a single row returned.
Sample Data
Temperature:
reading_id | STATION_NAME | DATE | TMAX | TMIN |
1076 | SEATTLE BOEING FIELD WA US | 20161230 | 57 | 31 |
1077 | SEATTLE BOEING FIELD WA US | 20161231 | 40 | 31 |
1078 | New York City Central Park | 20160101 | 42 | 34 |
1079 | New York City Central Park | 20160102 | 40 | 32 |
1080 | New York City Central Park | 20160103 | 45 | 35 |
1081 | New York City Central Park | 20160104 | 36 | 14 |
1082 | New York City Central Park | 20160105 | 29 |
11 |
Taxi:
trip_id | vendor_id | tpep_pickup_datetime | tpep_dropoff_datetime | passenger_count | trip_distance |
1 | 1 | 6/1/2016 0:00 | 6/1/2016 0:07 | 1 | 1.3 |
2 | 1 | 6/1/2016 0:00 | 6/1/2016 0:15 | 1 | 5.9 |
3 | 1 | 6/1/2016 0:00 | 6/1/2016 0:14 | 4 | 2.3 |
4 | 2 | 6/1/2016 0:00 | 6/1/2016 0:00 | 1 | 2.59 |
5 | 1 | 6/1/2016 0:00 | 6/1/2016 0:03 | 3 | 0.9 |
6 | 1 | 6/1/2016 0:00 | 6/1/2016 0:06 | 1 | 1.3 |
7 | 2 | 6/1/2016 0:00 | 6/1/2016 0:03 | 1 | 0.76 |
Using pgSQL: 1) how many trips total were taken between the hours of 4:00 am and...
Using Doubly Linked List, and Sorting methods: (In Java) (please attach your output with the answer) (Please answer if it is correct and working) (Have been getting many wrong and spam answers lately) Introduction: In this project, we use the same file structure of Artist and Art to extend the concepts of array and linked list and have them applied to sorting. The input files of p1arts.txt and p1artists.txt have been slightly modified. They are named p7arts.txt and p7artists.txt. Assignments:...
Using Merge Sort: (In Java) (Please screenshot or copy your output file in the answer) In this project, we combine the concepts of Recursion and Merge Sorting. Please note that the focus of this project is on Merging and don't forget the following constraint: Programming Steps: 1) Create a class called Art that implements Comparable interface. 2) Read part of the file and use Merge Sort to sort the array of Art and then write them to a file. 3)...