Limiting the amount of data
First, you will need to find the correct way to optimize this simple query by using only the required columns you need.
This exercise is part of the course
Introduction to BigQuery
Exercise instructions
- Reduce the amount of data being queried in the final query to include only the
order_id
andpayment_type
.
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
-- Write the most efficient query that uses only the required data
SELECT ___, ___
FROM ecommerce.ecomm_payments
LIMIT 10;