File tree 2 files changed +24
-2
lines changed
solution/0100-0199/0183.Customers Who Never Order
2 files changed +24
-2
lines changed Original file line number Diff line number Diff line change 48
48
49
49
### ** SQL**
50
50
51
- ```
51
+ ``` sql
52
52
select Name as Customers from Customers
53
53
where id not in (select CustomerId from Orders)
54
54
```
55
55
56
+ ``` sql
57
+ # Write your MySQL query statement below
58
+ SELECT
59
+ c .Name AS Customers
60
+ FROM
61
+ customers AS c
62
+ LEFT JOIN orders AS o ON c .Id = o .CustomerId
63
+ WHERE
64
+ o .CustomerId IS NULL
65
+ ```
66
+
56
67
<!-- tabs:end -->
Original file line number Diff line number Diff line change @@ -77,9 +77,20 @@ Orders table:
77
77
78
78
### ** SQL**
79
79
80
- ```
80
+ ``` sql
81
81
select Name as Customers from Customers
82
82
where id not in (select CustomerId from Orders)
83
83
```
84
84
85
+ ``` sql
86
+ # Write your MySQL query statement below
87
+ SELECT
88
+ c .Name AS Customers
89
+ FROM
90
+ customers AS c
91
+ LEFT JOIN orders AS o ON c .Id = o .CustomerId
92
+ WHERE
93
+ o .CustomerId IS NULL
94
+ ```
95
+
85
96
<!-- tabs:end -->
You can’t perform that action at this time.
0 commit comments