Back to course home
0% completed
24. Customer Purchase Summary
Problem
Table: Purchases
+---------------+---------+
| Column Name | Type |
+---------------+---------+
| purchase_date | date |
| customer_id | int |
| product | varchar |
+---------------+---------+
There is no primary key for this table. It may contain duplicates.
Each row of this table contains the purchase date, customer ID, and product name for each product purchased by customers.
Problem Definition
Write a solution to find for each customer the total number of distinct products purchased and a list of distinct products bought.
.....
.....
.....
Like the course? Get enrolled and start learning!
Table of Contents
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible
Contents are not accessible