Complete the code to select all columns from a BigQuery table named 'sales_data'.
SELECT [1] FROM `project.dataset.sales_data`;The asterisk (*) selects all columns from the table in BigQuery SQL.
Complete the code to count the number of rows in the 'users' table.
SELECT COUNT([1]) FROM `project.dataset.users`;Using COUNT(*) counts all rows in the table regardless of column values.
Fix the error in the query to filter rows where 'age' is greater than 30.
SELECT * FROM `project.dataset.customers` WHERE age [1] 30;
The '>' operator filters rows where age is greater than 30.
Fill both blanks to group sales by 'region' and calculate total revenue.
SELECT region, SUM([1]) AS total_revenue FROM `project.dataset.sales` GROUP BY [2];
SUM(revenue) calculates total revenue, and GROUP BY region groups data by region.
Fill all three blanks to select user_id, count orders, and filter users with more than 5 orders.
SELECT [1], COUNT([2]) AS order_count FROM `project.dataset.orders` GROUP BY [3] HAVING order_count > 5;
Select user_id, count order_id for orders, and group by user_id to filter users with more than 5 orders.