We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 433c16e commit 6796b4fCopy full SHA for 6796b4f
1083-sales-analysis-ii.sql
@@ -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