1511. Customer Order Frequency

https://leetcode.com/problems/customer-order-frequency

Description

Table: Customers


+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| customer\_id   | int     |
| name          | varchar |
| country       | varchar |
+---------------+---------+
customer\_id is the primary key for this table.
This table contains information of the customers in the company.

Table: Product


+---------------+---------+
| Column Name   | Type    |
+---------------+---------+
| product\_id    | int     |
| description   | varchar |
| price         | int     |
+---------------+---------+
product\_id is the primary key for this table.
This table contains information of the products in the company.
price is the product cost.

Table: Orders

Write an SQL query to report the customer_id and customer_name of customers who have spent at least $100 in each month of June and July 2020.

Return the result table in any order.

The query result format is in the following example.

ac

Last updated