Sei sulla pagina 1di 1

IST 272 Test 1 Coding Problems

Name: Shantell Brown

Date: 2/2/15
Instructions

1. Type your name and the date in the spaces provided.


2. Use the SQL Server Management Studio.
3. Write T-SQL statements to query the tables contained in the IST272EagleCorp
database.
4. Paste your solutions (code not run results) to questions 1 and 2 into the indicated
areas below.
5. Upload and submit this file before the due date.

Questions
1. Write a SELECT statement that returns three columns from
the InventoryPart table named PartDescription, StockPrice,
ReorderLevel. Filter to only include rows in the result
list that have StockLevel greater than 5. Whaite answer key

Paste code for question 1 below:


SELECT PartDescription, StockPrice, ReorderLevel
FROM InventoryPart
Where StockLevel > 5

-------------------------------------------2. Write a SELECT statement that returns


CustomerID, CustFirstName, CustLastName of each
customer whose Address begins with
'14'. Sort by CustLastName in descending sequence.

Paste code for question 2 below:


Select CustomerID, CustFirstName, CustLastName
From Customer
Where Address like '[14]%'
Order By CustLastName DESC

-----------------------------------------

Potrebbero piacerti anche