Skip to main content

Analyze Monthly Customer Transactions

Premium

In this mock SQL interview, Angie asks Raj (Adobe Data Scientist) to pull customer and transaction data at an e-commerce company. They discuss window functions, aggregations, and indexing in SQL.

Raj answers the following interview SQL questions:

  1. Write a query to report the number of users, number of transactions placed, and total order amount per month in the year 2020.
  2. Modify the query to report for multiple years.
  3. Write a query to print user's name, who ordered the most in the entire history.