How would you accomplish this task?

You work as a database administrator at ABC.com. ABC.com has a SQL Server 2012 database
named SalesDB. The SalesDB database is shown in the following database diagram:

You need to write a Transact-SQL query that displays all Customers, whether they have invoices
or not. The query must also display the InvoiceDate for a Customer that has an Invoice.
How would you accomplish this task?

You work as a database administrator at ABC.com. ABC.com has a SQL Server 2012 database
named SalesDB. The SalesDB database is shown in the following database diagram:

You need to write a Transact-SQL query that displays all Customers, whether they have invoices
or not. The query must also display the InvoiceDate for a Customer that has an Invoice.
How would you accomplish this task?

A.
You should make use of a UNION.

B.
You should make use of an INNER JOIN.

C.
You should make use of a CROSS JOIN.

D.
You should make use of an OUTER JOIN.

E.
You should make use of a CROSS APPLY.

Explanation:



Leave a Reply 1

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