Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Taxi SQL challenge!!! IMPORTANT ! ! ! Please provide exact answer in the format as it's asked, no extra details, as that would break automatic

Taxi SQL challenge!!! IMPORTANT !!!Please provide exact answer in the format as it's asked, no extra details, as that would break automatic grading(Try to copy it from your query output)Please do check the schema/structures for tables created. If it would be similar to below (in PGAdmin find table, right click on it, Scripts->Create Script would reveal exact columns definitions), then make sure to addquotesas part of the column name and useExAcT CaSefor affected column, e.g.SELECT"VendorID" fromyellow_taxi_trips;otherwise you'd get error that column is not found.CREATE TABLE IF NOT EXISTS public.yellow_taxi_data( "VendorID" integer, tpep_pickup_datetime timestamp without time zone, tpep_dropoff_datetime timestamp without time zone, passenger_count bigint, trip_distance double precision, "RatecodeID" bigint, store_and_fwd_flag text COLLATE pg_catalog."default", "PULocationID" integer, "DOLocationID" integer, payment_type bigint, fare_amount double precision, extra double precision, mta_tax double precision, tip_amount double precision, tolls_amount double precision, improvement_surcharge double precision, total_amount double precision, congestion_surcharge double precision, "Airport_fee" double precision)CREATE TABLE IF NOT EXISTS public.zones( index bigint, "LocationID" bigint, "Borough" text COLLATE pg_catalog."default", "Zone" text COLLATE pg_catalog."default", service_zone text COLLATE pg_catalog."default")1.How many taxi trips were there on March 15?Consider only trips that started on March 15.(: 2.5)Enter only final number2.Find the largest tip for each day. On which day it was the largest tip in March? Use the pick up time for your calculations.(: 2.5)Please enter the final date (e.g.2024-03-25)3.What was the most popular destination for passengers picked up in central park on March 14? Use the pick up time for your calculations.(: 2.5)Enter the zone name (not id). If the zone name is unknown (missing), write "Unknown4.What's the pickup-dropoff pair with the largest average price for a ride (calculated based ontotal_amount)? Enter two zone names separated by a slashFor example: Jamaica Bay/Clinton East (: 2.5)If any of the zone names are unknown (missing), write "Unknown". For example: Unknown/Clinton East5.Please copy andpaste your SQL queries here. Remember: no code - no scores

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Data Mining

Authors: Pang Ning Tan, Michael Steinbach, Vipin Kumar

1st Edition

321321367, 978-0321321367

More Books

Students also viewed these Databases questions

Question

full answer plzz asab

Answered: 1 week ago

Question

10. What is meant by a feed rate?

Answered: 1 week ago

Question

How can either be made stronger?

Answered: 1 week ago