Preview

sql lab home 2 SQL LAB HOME

Satisfactory Essays
Open Document
Open Document
874 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
sql lab home 2 SQL LAB HOME
1/28/2015

sql lab @ home 2 | SQL LAB @ HOME

SQL LAB @ HOME

search

Classic Flipcard Magazine Mosaic Sidebar Snapshot Timeslide sql lab @ home 12

sql lab @ home11

sql lab @ home 10

sql lab @ home 2
1. Display the details of all the customers. (Use the AdventureWorks database) select * from [Sales].[Customer]

sql lab @ home 9

sql lab @ home 8

2. Display the ID, type, number, and expiry year of all the credit cards in the following format. (Use the AdventureWorks database)

sql lab @ home 7

sql lab @ home 4

sql lab @ home 1

sql lab @ home 2

select * from [Sales].[CreditCard] select CreditCardID,CardType,CardNumber,ExpYear from [Sales].
[CreditCard]

sql lab @ home 3

sql lab @ home 6

sql lab @ home 5

3. Display the customer ID and the account number of all the customers who live in the TerritoryID 4.
(Use the AdventureWorks database) select * from [Sales].[Customer] select CustomerID,AccountNumber from [Sales].[Customer] where TerritoryID=4
4. Display all the details of the sales orders that have a cost exceeding $ 2,000. (Use the
AdventureWorks database) select * from [Sales].[SalesOrderDetail] select UnitPrice from [Sales].[SalesOrderDetail] where
UnitPrice>2000
5. Display the sales order details of the product named 'Cable Lock' for which the ProductId is 843.
(Use the AdventureWorks database)
Dynamic Views template. Powered by Blogger.

http://sqllabhelp.blogspot.com/2014/08/sql­lab­home­2.html

1/6

1/28/2015

sql lab @ home 2 | SQL LAB @ HOME

select * from [Sales].[SalesOrderDetail] select SalesOrderDetailID from [Sales].[SalesOrderDetail] where
ProductID=843
6. Display the list of all the orders placed on June 06, 2004. (Use the
AdventureWorks database) select * from [Sales].[SalesOrderDetail] select ModifiedDate from [Sales].[SalesOrderDetail] where
ModifiedDate=2004­06­06
7. Display the name, country region code, and sales year to date for the territory with Territory ID as
1. (Use the AdventureWorks database)

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Acc561 Week 5

    • 250 Words
    • 1 Page

    List the products and show for each quarter and for the 6 months, units, selling price, and total sales by product and in total.…

    • 250 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    i. List the customer number, last name, first name, and balance of every customer, sort by balance in descending order, and last name in ascending order.…

    • 2322 Words
    • 10 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 2

    • 310 Words
    • 2 Pages

    Question 1: What is the name of the computer you are working from? The Name of the computer is W2K8xx…

    • 310 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Acctstuff

    • 1954 Words
    • 14 Pages

    A customer purchased and received $5,000 of goods on credit from Discount Paper Supply on September 1. The customer received the bill on September 13 and mailed a $5,000 check on September 30. Discount Paper Supply received the check on October 4. On which of the following dates should Discount Paper Supply record sales revenue?…

    • 1954 Words
    • 14 Pages
    Powerful Essays
  • Better Essays

    Lab 2

    • 931 Words
    • 4 Pages

    A hazard of working with hydrochloric acid is that it could burn the skin if too much comes in contact with skin (Sciencelab1). If this happens rinse skin thoroughly under running water and alert the lab professor.…

    • 931 Words
    • 4 Pages
    Better Essays
  • Powerful Essays

    lab 1

    • 636 Words
    • 3 Pages

    Are there any safety concerns associated with this exercise? If so, list what they are and what precautions should be taken.…

    • 636 Words
    • 3 Pages
    Powerful Essays
  • Good Essays

    Lab 2

    • 514 Words
    • 2 Pages

    2. Create a user account named Kim in the Sales OU by using the following command:…

    • 514 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    3. Press the Enter key twice, and then type September 5, 2013 as the date. (Hint: There should now be exactly one blank line between the return address and the date.)…

    • 643 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1

    • 567 Words
    • 3 Pages

    Attacker would avoid detection by covering tracks step of the hacking process where they cover up their tracks in the system they hacked into.…

    • 567 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Lab 2

    • 639 Words
    • 2 Pages

    with varying amounts of data. In order for scanners to detect this type of virus,…

    • 639 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    lab 2

    • 398 Words
    • 2 Pages

    1. Compare the hash values calculated for example.txt that you documented during this lab. Explain in your own words why the hash values will change when the data is modified.…

    • 398 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Lab2

    • 520 Words
    • 3 Pages

    On your own and without assistance, complete this Lab 2 Answer Form electronically and submit it via the Assignments Folder by the date listed on your Course Schedule (under Syllabus).…

    • 520 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Final Exam

    • 1601 Words
    • 7 Pages

    3. (TCO A) Company ABC had sales per month as listed below. Using the Minitab output given, determine:…

    • 1601 Words
    • 7 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Lab 1

    • 414 Words
    • 2 Pages

    4. Why would you use a tool like DevManView while performing a computer forensic investigation?…

    • 414 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    lab 1

    • 2921 Words
    • 18 Pages

    entire exercise before you begin. Take time to organize the materials you will need and set…

    • 2921 Words
    • 18 Pages
    Good Essays