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

  Create the tables create the primary keys add dml statements

Create the tables Create the primary keys Create the foreign keys Add DML statements to: Add data of 1 customer who buys from the company Provide the DML to add 1 employee who interacts with customers Give DML to change data of the employee

  Analyze the business activity

Data Files needed for this Case Problem: OBrien.accdb (cont. from Tutorial 3) and Tests.bmp O'Brien Educational ServicesKaren O'Brien is using the OBrien database to track and analyze the business activity of her educational consulting company. T..

  Convert the e-r diagram below into the relations

Draw an E-R diagram based on the description below.Convert the E-R diagram below into the corresponding relations (tables).

  Design a relational database so that it is at least in 3nf

Explain typical situations when denormalizing a table is acceptable. Provide one (1) example of denormalizing a database table to justify your response.

  Identify potential sales and department store transactions

Identify the potential sales and department store transactions that can be stored within the database. Design a database solution and the potential business rules that could be used to house the sales transactions of the department store

  Creates a user-defined database role named paymententry

Write a script that creates a user-defined database role named PaymentEntry in the AP database. Give UPDATE permission to the new role for the Invoices table, UPDATE and INSERT permission for the InvoiceLineItems table.

  Delete a contact by having the user enter the name

Delete a contact by having the user enter the name

  Describe product characteristics and deliverables

Develop a scope statement for the project and describe product characteristics and deliverables.

  Difference between obsolescent and redundant stocks

Difference between obsolescent and redundant stocks

  How sales of individual items would be entered

How a system could improve accuracy? How sales of individual items would be entered? How the database would store the data compared to the current spreadsheet method?

  The traditional retail model has focused on finding

assignment 3 how is technology changing the face of business today?the traditional retail model has focused on finding

  Prepare database design using the data definition

Prepare database design documents using the data definition, data manipulation, and data control language components of the SQL language.

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