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

    Ada M. Tickle Week 3 ACC/545 Jamona Corporation Scenario 1 Journal Entries Dates Accounts Debit Credit 1 Jan 2006 Available for sale securities 322,744.44 Cash 322,744.44 31 Dec 2006 Cash 36,000 Available for sale securities 3,725.56 Interest Revenue ($3222.744.44 X .10)…

    • 406 Words
    • 2 Pages
    Satisfactory 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

    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
  • 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
  • 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

    • 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

    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
  • 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
  • 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
  • Better Essays

    Lab 2

    • 588 Words
    • 3 Pages

    The purpose of the experiment is to examine the effects of chocolate milk on performance physiology and fitness. It has been hypothesized that chocolate milk is a more efficient way to replenish energy stores due to its impact on the “muscle protein fractional synthetic rate, where signaling molecules” of the skeletal muscle trigger protein turnover enabling the individual to perform more efficiently; opposed to energy drinks and water.…

    • 588 Words
    • 3 Pages
    Better Essays
  • Good Essays

    Sql Server

    • 973 Words
    • 4 Pages

    The purpose of this paper is to provide a comprehensive review of the SQL Server 2005 Express Edition for Beginners tutorial. The SQL Server 2005 Express database tutorial helps users understand what a database is, it explains how to create tables within a database and how users can covert flat databases into relational databases. This tutorial was basically designed to give users the basic knowledge of creating data bases. Databases are nothing more than a collection of files that work together to store data in a structured way. Some databases are made up simple files and others may require that severs manages connections to files within in a database to authenticate users that’s accessing those files. One of the main focuses of databases is how well organizations manage their database and maintains the accuracy of their data. Companies may want to use databases instead of text files because they provides them with more efficient data integrity, they can store more data, they can retrieve data in multiple ways, databases also provides organizations with the ability to protect their data from unauthorized users and protects their data from being corrupt. Relational Database Management Systems makes managing data for companies easier and it takes care of the difficult tasks associate with integrating data into their applications. Relational databases are the most common type of databases that are used today. The eliminate data redundancy which could cause companies to enter inaccurate data into their databases. Before relational databases were created data was managed by mainframe computers and the storage capacity was limited and very expensive to maintain. Relational databases reduces the amount of space on reel-to-real tapes that each database record required and they also reduced the cost of storing data and provided data integrity. Data integrity refers to the accuracy of the data that organizations are storing. With relational databases…

    • 973 Words
    • 4 Pages
    Good Essays