You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+52Lines changed: 52 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1116,3 +1116,55 @@ WHERE LENGTH(content) > 15;
1116
1116
---
1117
1117
1118
1118
**[⬆ Back to Top](#sql-coding-challenges-for-beginners)**
1119
+
1120
+
## 37. Daily Leads and Partners
1121
+
1122
+
The `DailySales` table contains the date and the name of products sold and the IDs of the leads and partners they were sold to. Write a SQL query that for each `date_id` and `make_name`, returns the number of distinct `lead_id`'s and distinct `partner_id`'s. Here is an example:
0 commit comments