题目
题目

4510_COMP_SCI_X_0019 Quiz 4

单项选择题

Which of the following SQL queries will list only the Full Names of all Customers who made Purchases on 2019-04-02?

选项
A.SELECT * FROM Customer INNER JOIN Purchase on Customer.CustID = Purchase.CustID;
B.SELECT GivenName,FamilyName FROM Customer INNER JOIN Purchase on Customer.CustID = Purchase.CustIDWHERE PurchaseDate = '2019-04-02';
C.SELECT * FROM Customer AND Purchase WHERE PurchaseDate LIKE '2019-04-02';
D.SELECT GivenName,FamilyName FROM Customer INNER JOIN Purchase on Customer.CustID = Purchase.CustID WHERE PurchaseDate = '2019-04-02';
查看解析

查看解析

标准答案
Please login to view
思路分析
We start by restating the problem in our own words and then evaluate each option. Option 1: SELECT * FROM Customer INNER JOIN Purchase on Customer.CustID = Purchase.CustID; This query selects all columns from the joined Customer and Purchase tables for every matching row. It does not filter by a specific PurchaseDate, so it will list all purchases across all dates, and will also include many columns beyond Just GivenName and FamilyName. Therefore, it does not meet the requirement of listing only the Full Names for purcha......Login to view full explanation

登录即可查看完整答案

我们收录了全球超50000道考试原题与详细解析,现在登录,立即获得答案。

类似问题

更多留学生实用工具

加入我们,立即解锁 海量真题独家解析,让复习快人一步!