
题目描述
Suppose that a website contains two tables, the Customers table and the Orders table. Write a SQL query to find all customers who never order anything.
Table: Customers.
1 |
+----+-------+ |
Table: Orders.
1 |
+----+------------+ |
Using the above tables as example, return the following:
1 |
+-----------+ |
这题考查的是sql中in的用法,找到customers中不在orders的那些id就可以了
1 |
select name as Customers |




近期评论