Chat with us, powered by LiveChat AssignmentInstructions.docx - STUDENT SOLUTION USA

Unit 6 Assignment: Developing SQL Statements to Query Existing Data

Outcomes addressed in this activity:

Unit Outcomes:

· Use DML commands to query existing tables.

Course Outcome:

IT234-3: Explore Data Manipulation Language (DML) statements to manage data within schema objects.

Purpose

You are asked to develop SQL DML statements to address the questions presented below. You must use the Northwind database for this assignment.

Assignment Instructions 

Before completing the Assignment, please watch the Unit 6 videos covering facets associated with database querying.

Navigate to the Academic Tools area of this course and select Library then Required Readings to access your texts and videos.

You will use the Northwind database for this assignment. Deploy the Northwind database into your Microsoft SQL Server instance by executing the following script in a Microsoft SQL Server Management Studio (SSMS) query window:

·

Once the Northwind database is successfully deployed, generate SQL statements to address the problems below. Use the following database design diagram as a guide in forming your statements:

·

Problem 1: Display the product records with unit prices equal to or greater than $100.

Expected Output

The expected query output displaying the products with unit prices equal to or greater than $100.

Problem 2: Present the unit value minimum, maximum, average, and standard deviation for current and discontinued products. Group the results based on the “Discontinued” attribute.

Expected Output

The expected query output presenting the unit value minimum, maximum, average, and standard deviation for current and discontinued products.

Problem 3: List suppliers with names starting with “ G” in alphabetical order.

Expected Output

Table  Description automatically generated

Problem 4: Display the full names of all Employees in FirstName, “ ” , LastName format.

Expected Output

The expected query output displaying the full names of all Employees in a combined first and last name format.

Problem 5: Display all of the supplier names and HomePage values where the HomePage value is null. Present the results in alphabetical order by supplier name.

Expected Output

The expected query output displaying all of the supplier names and home page values where the home page value is null.

Problem 6: Get the number of Northwind customers in each country that has five or more customers. Present the results in alphabetical order by country name.

Expected Output

The expected query output showing the number of Northwind customers in each country having five or more customers.

Problem 7: Get the total product costs (i.e., multiplying the unit price by quantity) for ProductID = 20 along with the associated orders IDs from the OrderDetails table. Provide the results in ascending order based on the order ID.

Expected Output

The expected query output showing the total product costs for ProductID = 20 along with the associated order IDs from the OrderDetails table.

Problem 8: Select all of the cities where there are employees with no duplicates values displayed. Show the cities in alphabetical order.

Expected Output

The expected query output showing all cities where there are employees with no duplicate values displayed.

Problem 9: List first and last names for employees who live in London, Seattle, or Redmond. Show the employee’s city in the output.

Expected Output

The expected query output listing first and last names for employees living in London, Seattle, or Redmond

Problem 10: Display all product IDs and names for out-of-stock products having a unit price in the range of $20 to $25. Show the units-in-stock value in the results.

Expected Output

The expected query output displaying all product IDs, names, unit prices, and units-in-stock values for out-of-stock products having a unit price in the range of $20 to $25.

Assignment Requirements

Microsoft SQL Server Express and SQL Server Management Studio (SSMS) MUST be installed to complete this Assignment.

Compose your Assignment in a Word document and be sure to identify yourself, your class, and unit Assignment at the top of your paper. Embed the screenshots of your SQL statements and confirmatory output (e.g., table structure definitions) into the Word document.

image4.jpeg

image5.jpeg

image6.png

image7.jpeg

image8.jpeg

image9.jpeg

image10.jpeg

image1.jpeg

image2.jpeg

image3.jpeg

error: Content is protected !!