Skip to content

Commit 694b32a

Browse files
authored
Create 1693-daily_leads_and_partners.sql
1 parent c67861f commit 694b32a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

1693-daily_leads_and_partners.sql

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# https://leetcode.com/problems/daily-leads-and-partners/
2+
SELECT date_id, make_name,
3+
COUNT(DISTINCT lead_id) AS unique_leads,
4+
COUNT(DISTINCT partner_id) as unique_partners
5+
FROM DailySales
6+
GROUP BY date_id, make_name

0 commit comments

Comments
 (0)