Which list of products should the query return?

You have two tables named dbo.CurrentProducts and dbo.ArchiveProducts. You have the following query:
SELECT ProductID, Name FROM dbo.CurrentProducts
UNION ALL
SELECT ProductID, NameFROM dbo.ArchiveProducts;
You need to predict the list of products that the query will produce.
Which list of products should the query return?
A. Products that appear in dbo.CurrentProducts or dbo.ArchiveProducts but not in both.
B. Products that appear in dbo.CurrentProducts or dbo.ArchiveProducts. Products that appear in both tables are listed multiple times.
C. Products that have a matching ProductID and Name in dbo.CurrentProducts or dbo.ArchiveProducts.
D. Products that appear in dbo.CurrentProducts or dbo.ArchiveProducts. Products that appear in both tables are listed only once.

microsoft-exams

Leave a Reply

Your email address will not be published. Required fields are marked *


The reCAPTCHA verification period has expired. Please reload the page.