Professional Documents
Culture Documents
Overview
In this lab, you will use some basic SELECT queries to retrieve data from the AdventureWorksLT
database.
Before starting this lab, you should view Module 1 Introduction in the Course Querying with Transact-
SQL. Then, if you have not already done so, follow the instructions in the Getting Started document for
this course to set up the lab environment.
If you find some of the challenges difficult, dont worry you can find suggested solutions for all of the
challenges in the Lab Solution folder for this module.
Tip: Review the documentation for the SELECT statement in the Transact-SQL Reference.
Tip: Review the documentation for Conversion Functions in the Transact-SQL Reference.
Tip: Review the documentation for the ISNULL function and Expressions in the Transact-SQL Reference.
IMPORTANT: In the sample data provided in AdventureWorksLT, there are no customer records
without an email address. Therefore, to verify that your query works as expected, run the following
UPDATE statement to remove some existing email addresses before creating your query (dont worry,
youll learn about UPDATE statements later in the course).
UPDATE SalesLT.Customer
SET EmailAddress = NULL
WHERE CustomerID % 7 = 1;
Next Steps
Well done! Youve completed the lab, and youre ready to continue learning about more complex
SELECT query syntax in Module 2 Querying Tables with SELECT in the Course Querying with Transact-
SQL.