Skip to content

Commit 6796b4f

Browse files
authored
Create 1083-sales-analysis-ii.sql
1 parent 433c16e commit 6796b4f

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

1083-sales-analysis-ii.sql

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# Write your MySQL query statement below
2+
select distinct buyer_id from sales s
3+
join product p
4+
on p.product_id = s.product_id
5+
where buyer_id not in (
6+
select distinct buyer_id from sales s
7+
join product p on
8+
s.product_id = p.product_id
9+
where product_name = 'iPhone'
10+
) and product_name='S8';

0 commit comments

Comments
 (0)