Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Using Northwind.sql database plz upload a screen print of each report. Perform the query exercises to said BD; creating those queries that are necessary in
Using Northwind.sql database
plz upload a screen print of each report.
Perform the query exercises to said BD; creating those queries that are necessary in SQL Language, so that you obtain the information that is requested of you In the REPORT section.
REPORTS AND REPORTS
(Queries in SQL)
REPORT5 #01
Consult and report the name of the database that was created on your PC and that you will be
Used in this activity.
(To do this, you must investigate and execute the SQL command that gives you the name of the DB
"In use"; additionally add a "label" to the result obtained, using the "word
SQL" )
REPORT #02
Check the average unit price of all products.
(Add a "label" = (title to the result column))
REPORT #03
Check what are the different = (unrepeat)... paternal surnames that our employees have, but only in the range from the initials "A" to "F"
REPORT #04
Italy
Check the names of those customers, who are our contacts in the USA, Spain and
REPORT #05
Check the names of all those products and their unit price, which have been sold to our customers in the USA; without repeating products with the same name.
REPORT #06
Consult the name and surname of the contacts of all our customers, who have been served by our employees; but only of those customers, whose surname begins with a letter "A"
REPORT #07
Consult the name of the product and the units = (parts) that were sold, in the "largeest" sale that has been made (that is, in a single operation = in the same Order of
Purchase )
REPORT #08
Consult the name and surname, only of those employees who have processed
Purchase Orders; to each employee, include the total number of orders he has fulfilled = (dragged).
REPORT #09
Generate the following report = (run the following query), showing the result obtained and
Explain later:
What operation = (query) is being performed in the following script?
USE northwind
SELECT TOP 5 WITH TIES orderid, productid, quantity
FROM order_details
ORDER BY quantity DESC
REPORT #10
Generate the following report = (run the query), showing the result obtained and explaining:
What operation = (query) is being performed in the following script?
USE nortlhwind
SELECT productid, SUM(quantity) AS total_quantity
FROM order details
GROUP BY productid
HAVING SUM (quantity) > 1200
REPORT #11
Explain:
Generate the following report = (run the following query), showing the result obtained and
What operation = (query) is being performed in the following script?
USE nortlhwind
SELECT DISTINCT region
FROM customers
WHERE region IS NOT NULL
REPORT #12
He explains:
Generate the following report = (run the following query), showing the result obtained and
What operation = (query) is being performed in the following script?
USE nortlhwind
SELECT *
FROM products
WHERE unitprice > ANY
(SELECT unitprice
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started