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
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
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...
Related questions
Question
please help
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 5 steps
Knowledge Booster
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.Recommended textbooks for you
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning
A Guide to SQL
Computer Science
ISBN:
9781111527273
Author:
Philip J. Pratt
Publisher:
Course Technology Ptr
Programming with Microsoft Visual Basic 2017
Computer Science
ISBN:
9781337102124
Author:
Diane Zak
Publisher:
Cengage Learning