Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: validbest

Exam DA0-002 All Questions
Exam DA0-002 All Questions

View all questions & answers for the DA0-002 exam

CompTIA Data+ DA0-002 Question # 29 Topic 3 Discussion

DA0-002 Exam Topic 3 Question 29 Discussion:
Question #: 29
Topic #: 3

A data analyst wants to use the following tables to find all the customers who have not placed an order:

Customers table

ID

Name

Address

Products table

ID

Name

Customer_ID

Which of the following SQL statements is the best way to accomplish this task?


A.

SELECT * FROM CUSTOMERS AS C LEFT JOIN PRODUCTS AS P ON C.ID = P.Customer_ID WHERE P.Customer_ID IS NULL


B.

SELECT * FROM CUSTOMERS AS C INNER JOIN PRODUCTS AS P ON C.ID = C.IDWHERE COUNT(P.) = 0


C.

SELECT * FROM PRODUCTS AS P INNER JOIN CUSTOMERS AS C ON P.Customer_ID = C.ID WHERE (SELECT COUNT(P.) = 0)


D.

SELECT * FROM PRODUCTS AS P LEFT JOIN CUSTOMERS AS C ON P.Customer_ID = C.ID WHERE P.Customer_ID IS NOT NULL


Get Premium DA0-002 Questions

Contribute your Thoughts:


Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.