You are maintaining a SQL Server database that uses the default settings.

You are maintaining a SQL Server database that uses the default settings. The database contains a table that is defined by the following Transact-SQL statement

You must write a query that returns the AddressLine1, AddressLine2, and Region fields separated by carriage returns. You must return an empty string for any null values

A. Option A
B. Option B
C. Option C
D. Option D

microsoft-exams

2 thoughts on “You are maintaining a SQL Server database that uses the default settings.

  1. I agree with you up to a point, Alex.
    As we are selecting address lines and region, AddressLine2 is the only 1 that can be NULL (see table) – so A will also give you the correct result.

    This question was obviously adapted from another question which says “Which two queries can you use?”

    By having left off those last 6 words, it creates confusion, as both A and D apply, but we are being asked to provide 1 option only.

Leave a Reply

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


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