Which Transact-SQL statement should you run?

Posted by: Pdfprep Category: 70-761 Tags: , ,

Note: This question is part of a series of questions that use the same or similar answer choices. An answer choice may be correct for more than one question in the series. Each question is independent of the other questions in this series. Information and details provided in a question apply only to that question.

You have a database that contains tables named Customer_CRMSystemand Customer_HRSystem. Both tables use the following structure:

The tables include the data below:

Customer_CRMSystem

Customer_HRSystem

Records that contain null values for CustomerCodecan be uniquely identified by CustomerName.

You need to display customers that have a proper CustomerCodeand do not appear in the Customer_HRSystemtable.

Which Transact-SQL statement should you run?

E.

F.

G.

H.

Answer: C

Explanation:

To return records from the left table which are not found in the right table use Left outer join and filter out the rows with NULL values for the attributes from the right side of the join.

Reference:

https://stackoverflow.com/questions/25685545/how-to-return-rows-from-left-table-not-found-in-right-table

Leave a Reply

Your email address will not be published.