Note: Students must submit a PDF document with screenshots, showing their T-SQL coding, object explorer and query result, running on SQL Server Management Studio. Note: Use your Database and tables created in Question 1 to answer the following questions. 2.1 Create a view that shows all the Orders, with the customer name, for a specific order date. (Students will choose an OrderDate as per rows in their Orders table) (4) 2.2 Create a Scalar-valued function to get the total of the UnitCost, in the Products table. (4) 2.3 Use the Scalar-valued function created in question 2.2 to print "The Total cost of the products we have is R", return the Total cost from the function in rands.(4) 2.4 Write a query against OrderDetails Table, that returns the running quantity for each order using

A Guide to SQL
9th Edition
ISBN:9781111527273
Author:Philip J. Pratt
Publisher:Philip J. Pratt
Chapter7: Database Administration
Section: Chapter Questions
Problem 4TD: Write, but do not execute, the commands to grant the following privileges: a. User Ashton must be...
icon
Related questions
Question

please help 

CTU Quiz: CF412_SA: Section 2
+
i colcampus.com/courses/52691/quizzes/103416/take
* O
Question 2
20 pts
CTU,
Note: Students must submit a PDF document with screenshots, showing their T-SQL coding, object explorer
and query result, running on SQL Server Management Studio.
Note: Use your Database and tables created in Question 1 to answer the following questions.
Account
2.1 Create a view that shows all the Orders, with the customer name, for a specific order date. (Students will
choose an OrderDate as per rows in their Orders table) (4)
Dashboard
2.2 Create a Scalar-valued function to get the total of the UnitCost, in the Products table. (4)
Courses
2.3 Use the Scalar-valued function created in question 2.2 to print "The Total cost of the products we have is R",
return the Total cost from the function in rands.(4)
2.4 Write a query against OrderDetails Table, that returns the running quantity for each order using
Calendar
subqueries. (4)
2.5 Write a join query between the derived table and the Orders table to return the Orders with the maximum
Inbox
order date for each customer. (4)
VQM
VQManager
Upload
Choose a File
Quiz saved at 1:36pm
Submit Quiz
13:37
O Type here to search
В.
22°C
a 4») ENG
2021/11/22
...
Transcribed Image Text:CTU Quiz: CF412_SA: Section 2 + i colcampus.com/courses/52691/quizzes/103416/take * O Question 2 20 pts CTU, Note: Students must submit a PDF document with screenshots, showing their T-SQL coding, object explorer and query result, running on SQL Server Management Studio. Note: Use your Database and tables created in Question 1 to answer the following questions. Account 2.1 Create a view that shows all the Orders, with the customer name, for a specific order date. (Students will choose an OrderDate as per rows in their Orders table) (4) Dashboard 2.2 Create a Scalar-valued function to get the total of the UnitCost, in the Products table. (4) Courses 2.3 Use the Scalar-valued function created in question 2.2 to print "The Total cost of the products we have is R", return the Total cost from the function in rands.(4) 2.4 Write a query against OrderDetails Table, that returns the running quantity for each order using Calendar subqueries. (4) 2.5 Write a join query between the derived table and the Orders table to return the Orders with the maximum Inbox order date for each customer. (4) VQM VQManager Upload Choose a File Quiz saved at 1:36pm Submit Quiz 13:37 O Type here to search В. 22°C a 4») ENG 2021/11/22 ...
Expert Solution
steps

Step by step

Solved in 5 steps

Blurred answer
Knowledge Booster
SQL Query
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
A Guide to SQL
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Oracle 12c: SQL
Oracle 12c: SQL
Computer Science
ISBN:
9781305251038
Author:
Joan Casteel
Publisher:
Cengage Learning
Programming with Microsoft Visual Basic 2017
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning