Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
NotificationsYou must be signed in to change notification settings

ironhack-labs/lab-bigquery-exercises

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

logo_ironhack_blue 7

LAB | BigQuery — NYC Yellow Taxi Exercises

Objective

Run a short set of SQL queries in Google BigQuery against the NYC Yellow Taxi public dataset to practice cloud data warehouse basics (public datasets, SQL, cost awareness).

Setup (5–10 minutes)

  1. Sign in with a Google account and open BigQuery in the Google Cloud Console.
  2. Use BigQuery Sandbox (no billing) or a classroom project provided by the instructor.
  3. In the Explorer, locate the NYC Taxi public dataset (Yellow Trips). Choose a 2023 table if available. Tip: use the dataset browser and copy the fully qualified table name from the UI.

Instructions

  • Write each query in a separate cell/tab and label it with the exercise number in a comment.
  • Prefer date filters to limit scanned bytes. Use preview to confirm schemas before running.
  • Keep notes of any assumptions (e.g., which exact table you used).

Exercises (submit queries 1–6; 7–10 are optional)

Mandatory (1–6):

  1. Count the number of trips in January 2023
  2. Calculate the total revenue generated by taxi trips in 2023
  3. Find the most popular pickup location
  4. Analyze the number of trips per hour of the day
  5. Calculate the average trip distance
  6. Find the longest trip by distance

Optional (7–10):7. Calculate the total number of passengers by payment type8. Find the most common drop-off location for trips paid by credit card9. Calculate the total number of trips that had more than 4 passengers10. Subquery — Find the average fare for trips longer than the average trip distance

Hint: Use functions like EXTRACT, DATETIME/TIMESTAMP functions, GROUP BY, ORDER BY, and LIMIT. For revenue, sum fare components (e.g., fare_amount + tip_amount + tolls where applicable), based on the table schema you select.

Deliverables (submission)

  • Submit your solutions via a Pull Request.

Safety and cost notes

  • Public datasets are free to query; scanning bytes count toward sandbox limits. Always filter by date when possible.
  • Use the query validator to review “bytes processed” before running.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp