Answered step by step
Verified Expert Solution
Question
1 Approved Answer
. In addition, before you begin, please ensure that you verify the information that is your RetailSales database, and re - run SQL commands as
In addition, before you begin, please ensure that you verify the information that is your RetailSales database, and rerun SQL commands as necessary.
Database Structure
The following tables should already represent the structure of your RetailSales database.
Database: Retail Sales
Table: Ottawa.Customers Table: Ottawa.Suppliers
Column Name Character Type Max Characters Column Name Character Type Max Characters
CUSTOMERID int PK SUPPLIERID int PK
FIRSTNAME varchar SUPPLIERNAME varchar
LASTNAME varchar ADDRESS varchar
ADDRESS varchar CITY varchar
CITY varchar PROVINCE varchar
PROVINCE varchar POSTALCODE varchar
PHONENUMBER varchar PHONENUMBER varchar
Table: Ottawa.Products Table: Transactions
Column Name Character Type Max Characters Column Name Character Type Max Characters
PRODUCTID int PK TRANSNUM int PK
DESCRIPTION varchar PRODUCTID int FK
COST money CUSTOMERID int FK
RETAILPRICE money RETAILPRICE money
SUPPLIERID int FK QUANTITY int
Table Information:
Add the following information into the tables.
Customers Table
CustomerID:
FirstName: Henriette
LastName: Samuel
Address: Kings Cross Lane
City: Marionette
Province: QC
PostalCode: RT N
PhoneNumber:
CustomerID:
FirstName: Rosina
LastName: Strinati
Address: Hopkins Lane
City: Kingston
Province: ON
PostalCode: UY L
PhoneNumber:
CustomerID:
FirstName: Fillipo
LastName: Candreva
Address: Ferrari Drive
City: Folliero
Province: BC
PostalCode: YK K
PhoneNumber:
CustomerID:
FirstName: Raffaele
LastName: Spina
Address: Gianni De Luca St
City: Vulcan
Province: AB
PostalCode: PT
PhoneNumber:
Suppliers Table
SupplierID:
SupplierName: Multimicro Inc
Address: Multimicro Way
City: Laval
Province: QC
PostalCode: UP Y
PhoneNumber: SupplierID:
SupplierName: ChrisCo
Address: Wild Goose Road
City: WaWa
Province: ON
PostalCode: PS A
PhoneNumber:
Products Table
ProductID:
Description: Logitech Ergo K
Cost:
RetailPrice
SupplierID
ProductID:
Description: High Speed K HDMI Cable, ft
Cost:
RetailPrice
SupplierID
Transactions Table
TransNum:
CustomerID:
ProductID:
RetailPrice:
Quantity:
TransNum:
CustomerID:
ProductID:
RetailPrice:
Quantity:
Query
Run a query that display the contents of all tables do four separate queries
Take a screenshot
Run a query that displays only the first lines of the Customers table
Take a screenshot
Run a query that displays the last line in the Suppliers table
Take a screenshot
Run a query that displays the names of the four tables that you created in the RetailSales database
Take a screenshot
Backup
Perform a Full backup of the RetailSales database
Take a screenshot that displays the size of the RetailSales database backup
Note: You can either run an SQL query on the size of the backup or take a screenshot of File Explorer showing the file size.
Table Information Revisited
Add the following information to the database into the appropriate table.
Customers Table
CustomerID:
FirstName: Tamara
LastName: Egorova
Address: Kiseleva Way
City: Seren
Province: MN
PostalCode: SE R
PhoneNumber:
Suppliers Table
SupplierID:
SupplierName: Kalindi Corp
Address: Starfield Way
City: Cali
Province: YK
PostalCode: CA LE
PhoneNumber:
Products Table
ProductID:
Description: Projector Screen Inch :
Cost:
RetailPrice
SupplierID
Transactions Table
TransNum:
CustomerID:
ProductID:
RetailPrice:
Quantity:
Backup Revisited
Perform a transaction log backup of the RetailSales database
Take a screenshot showing the size of the transaction log backup
Query
Run a query displaying the last line entered of each table
Take a screenshot for each query
Security
Create a dynamic display mask that hides the Customer Phone Numbers in the Customers table
Encrypt the Cost field in the Products table
Create a dynamic display mask that hides the address information in the Suppliers table
Query
Run a query that shows the information in the Customers table has been masked
Take a screenshot
Note: Do not show me the unmasked data
Run a query showing that the cost field in the Products table has been encrypted
Take a screenshot
Run a query showing that the Suppliers address information is masked
Take a screenshot
Note: Do not show me the unmasked data
Submission
Screenshots of the successful completion of all your queries are required. You may paste the screenshots in the
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