Question: Query Exercises: 1 5 Points 1 . Write a TSQL script to create a database with the specifications listed under: Database name: Marketing Initial data
Query Exercises: Points
Write a TSQL script to create a database with the specifications listed under:
Database name: Marketing
Initial data file size:GB
Growth rate:
Initial log file size:GB
Growth rate:
Write a TSQL script to create tables with the specifications listed under:
Table Name
Column Names
Customers
CustomerID PKidentity LName, FName, MName, StreetNo, StreetName, City, SSN DOB, Phone, ZipCode, Country
Orders
OrderID PKidentity ProductID, Transactiondate, OrderQuantity, UnitPrice, Paymenttype
Write a TSQL script to add a new column to the Orders table with the same specification as CustomerID column of Customers table.
Write a TSQL script to add CustomerID column as a foreign key in the Orders table referencing CurstomerID column from Customers table.
Write TSQL scripts to insert sample records into the customers table and only out of the customers placed orders.
Write a TSQL script to select all orders information from orders table with full customer information who made the orders.
Write a TSQL statement that updates the last name of CustomerID to Charles
Create a parametrized stored procedure that takes CustomerID as a variable and returns customers information along with any orders they made. For customers who did not place orders, order related attributes should show null values.
Take a full backups of marketing database and submit the backup script along with the backup bak file.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
