443-970-2353
[email protected]
CV Resume
This post is lab exercise I did on Querying with Transact-SQL edx course.
In this lab, I will use SELECT queries to retrieve, sort, and filter data from the AdventureWorksLT database.
SELECT DISTINCT City, StateProvince
FROM SalesLT.Address
SELECT TOP 10 PERCENT Name FROM SalesLT.Product ORDER BY Weight DESC;
SELECT Name FROM SalesLT.Product ORDER BY Weight DESC
OFFSET 10 ROWS FETCH NEXT 100 ROWS ONLY;
SELECT Name, Color, Size
FROM SalesLT.Product
WHERE ProductModelID = 1;
SELECT ProductNumber, Name
FROM SalesLT.Product
WHERE Color IN ('Black','Red','White') and Size IN ('S','M');
SELECT ProductNumber, Name, ListPrice
FROM SalesLT.Product
WHERE ProductNumber LIKE 'BK-%';
SELECT ProductNumber, Name, ListPrice
FROM SalesLT.Product
WHERE ProductNumber LIKE 'BK-[^R]%-[0-9][0-9]';