Explore advanced sql queries

Assignment Help Database Management System
Reference no: EM131748850

Lab : SQL

Objectives:

1. Explore more advanced SQL queries.

2. Answer the questions, copy the SQL code, create screenshots, and submit the results.

Submission requirements:

• For all text and image submissions, use MS Word, which is available to you within the Virtual Desktop Infrastructure (VDI).

• For all SQL code submissions, use MS Word, which is available to you within VDI.

• For all diagram submissions, use MS Visio, which is available to you within VDI.

o Note: If you need assistance on how to get started with this tool, go to the references section at the end of this document.

• If the submission is more than one file:

1. Name each item appropriately.

a. For example: LAB5-SQL-yourName.vsd, LAB5-Questions-yourName.docx

2. Save each item in a single folder.

3. This folder should also be named appropriately.

a. For example: LAB5-yourName

4. Compress the folder.

5. Submit the compressed file in Blackboard.

Lab:

1.Using the AdventureWorks database, query "Sales.SalesOrderDetail" table to find out the total number of parts associated with each of the following Sales OrderIDs: 43660, 43670, and 43672. This task should be completed in a single query.Submit the SQL statement used to accomplish this task.

o How many rows were affected?

o Provide a screenshot of the result set.

2. Query "Sales.Store" table to obtain the list of "Name" and "SalesPersonID" where the store name starts with the letters "g" through "j" and the SalesPersonID is greater than 283. Make sure that the list is sorted by "SalesPersonID" and then by "Name" fields in a descending order.

Be sure the query returns all the required rows.

a. Submit the SQL statement used to accomplish this task.

b. How many rows were affected?

c. Provide a screenshot of the result set.

Hint: Combine WHERE clause conditions and also have an ORDER BY clause in place.

Reference no: EM131748850

Questions Cloud

What do you think is top benefit for healthcare organization : Based on your own experience and/or research, what do you think is the top benefit for a healthcare organization to adopt electronic health records (EHR)?
Explain the contribution approach : The following results have been reported by Compton Company for May 2017: Sales $ 480,000 Cost of goods sold 216,000 Gross margin 264,000 Selling.
Analyse how certain factors are affecting the accuracy : MP 3680 Engineering simulation assignment – kinetic analysis
Design your posts to elicit multiple points of view : Discussion: Individual Responsibility Versus Victim Blaming in Health Promotion. Design your posts to elicit multiple points of view from your colleagues.
Explore advanced sql queries : Explore more advanced SQL queries.Using the AdventureWorks database, query "Sales.SalesOrderDetail" table to find out the total number of parts associated.
Discuss problem related to phineus corporation : The following selected data pertain to Phineus Corporation: Please provided detailed calculations/how Cash Operating Expenses.
Describe both observational and experimental epidemiology : Describe both observational and experimental epidemiology as the two study designs apply to tuberculosis
Discuss a particular policy or procedure : This type of observation examines behaviors that occur naturally in the normal environment. It is useful to see if a person is following a particular policy
Develop standards for your organization : Develop standards for your organization that is without any such organizational project history.

Reviews

Write a Review

Database Management System Questions & Answers

  Knowledge and data warehousing

Design a dimensional model for analysing Purchases for Adventure Works Cycles and implement it as cubes using SQL Server Analysis Services. The AdventureWorks OLTP sample database is the data source for you BI analysis.

  Design a database schema

Design a Database schema

  Entity-relationship diagram

Create an entity-relationship diagram and design accompanying table layout using sound relational modeling practices and concepts.

  Implement a database of courses and students for a school

Implement a database of courses and students for a school.

  Prepare the e-r diagram for the movie database

Energy in the home, personal energy use and home energy efficiency and Efficient use of ‘waste' heat and renewable heat sources

  Design relation schemas for the entire database

Design relation schemas for the entire database.

  Prepare the relational schema for database

Prepare the relational schema for database

  Data modeling and normalization

Data Modeling and Normalization

  Use cases perform a requirements analysis for the case study

Use Cases Perform a requirements analysis for the Case Study

  Knowledge and data warehousing

Knowledge and Data Warehousing

  Stack and queue data structure

Identify and explain the differences between a stack and a queue data structure

  Practice on topic of normalization

Practice on topic of Normalization

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd