Skip to content

Commit e87ce2a

Browse files
authored
Create 1693.Daily-Leads-and-Partners.sql
1 parent ba0f840 commit e87ce2a

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
--MySQL & MS SQL Server
2+
SELECT
3+
date_id,
4+
make_name,
5+
COUNT(DISTINCT lead_id) AS unique_leads ,
6+
COUNT(DISTINCT partner_id) AS unique_partners
7+
FROM DailySales
8+
GROUP BY date_id, make_name;

0 commit comments

Comments
 (0)