1
您有两个名为Customer和SalesOrder的表。在客户表中,您有1000个客户,其中900个客户在SalesOrder表中有订单。您执行以下查询以列出至少有一次销售的所有客户。简单的MCTS SQL选择
SELECT * FROM Customer WHERE Customer.CustomerID IN (SELECT Customer.CustomerID
FROM SalesOrder)
您需要确定查询的结果。查询返回哪个结果?
A. No rows
B. A warning message
C. The 1000 rows in the Customer table
D. The 900 rows in the Customer table with matching rows in the SalesOrder table
的MCTS声称,答案是C,但我不知道为什么不D.
你觉得呢?