1. Learn
  2. /
  3. Courses
  4. /
  5. Introduction to BigQuery

Connected

Exercise

Finding the last 90 days of orders

The report you have been asked to create asks for orders older than 90 days from the current date. You will implement what you have learned so far into the report query.

Instructions

100 XP
  • In the WHERE clause, find the date that is 90 days in the past to pass as an argument to the TIMESTAMP_SUB() function.
  • Then filter the results where the column order_purchase_timestamp is less than that value.