Support ongoing development - donate to help us maintain and improve the platform. 🖥️ Support sqltest →
SQL code copied to buffer
Task 175:

Prepare mailing list

SQL Server 2022
The Sales department wants to send New Year's greetings to all customers residing in Texas. Write a SQL query to retrieve the names and addresses of these customers.
The query should output a table with two columns:
Name: A concatenated string of Title, FirstName, MiddleName, and LastName separated by spaces.
Address: A concatenated string of AddressLine1, AddressLine2, City, StateProvince and PostalCode separated by commas
Sort the result by the customer's LastName.
Expected result Columns: 2 · Rows: 37
Name Address

Sample rows open after wrong checks: 0 of 2

Write your query below and click "Check it!". Tables are described in the right pane.

The query result will appear here. Ctrl+Enter - Run query

Hi! Could we please enable some services and cookies to improve your experience and our website?

Privacy & Cookie Policy.