PrepAway - Latest Free Exam Questions & Answers

Which three Transact-SQL statements should you use?

DRAG DROP
You use Microsoft SQL Server 2012 to develop a database that has two tables named Div1Cust and
Div2Cust.
Each table has columns named DivisionID and CustomerId . None of the rows in Div1Cust exist in
Div2Cust.
You need to write a query that meets the following requirements:
The rows in Div1Cust must be combined with the rows in Div2Cust.
The result set must have columns named Division and Customer.
Duplicates must be retained.
Which three Transact-SQL statements should you use? (To answer, move the appropriate
statements from the list of statements to the answer area and arrange them in the correct order.)

PrepAway - Latest Free Exam Questions & Answers

Answer:

8 Comments on “Which three Transact-SQL statements should you use?

  1. Tony says:

    I think it’s: 5, 6, 2.
    5: Because you first select the Div1Cust table and use the appropriate aliases for the columns.
    6: Because “None of the rows in Div1Cust exist in Div2Cust” so you don’t need a more heavy UNION that applies a distinct.
    2: You select the right columns from Div2Cust




    0



    0
  2. Coretta Thornton says:

    In my estimation, aiotestking.com does a good job of covering topics like this! While sometimes deliberately polemic, the material posted is generally well-written and stimulating.

    healthierway.tumblr.com




    0



    0

Leave a Reply