Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Create a database Bank , and then create a table customer with the columns ( Cust _ id , Cust _ name, login _ id
Create a database Bank and then create a table customer with the columns Custid Custname, loginid password,
Accno Aadharno PANno Mobile, Email, Balamount
i Create a view Custmasking to deidentify customer details as
No masking on Custid Custname, Balamount
Apply masking on loginid to reveal only last five positions and mask all the remaining with symbol x
Apply masking on password to mask all positions with symbol
Apply masking on Accno to reveal only last four positions and all the remaining should be masked.
Apply masking on Aadharno to reveal first two and last two positions and mask all the remaining with symbol #
Apply masking on PANno to reveal first two and last four positions and mask all the remaining with symbol $
Apply masking on mobile to reveal last three positions and mask all the remaining with symbol
Write SQL statement to Use the schema in Q
i apply masking on email to replace it with randomly generated email
ii apply masking on email to replace it with randomly generated email from a dictionary
Let us assume an Amazon ecommerce maintains an ecommerce database and stores their customer purchases in a table
called Purchases. The fields that they store about different purchases are: custid loginid password, custname,
mobileno item, amount, cardno Write DDL commands to create ecommerce database and Purchases table with given
fields.
For the purpose of secure communication with their customers, they decided to mask the data as mentioned below. Create
a view according to the criterion required by the Amazon ecommerce for providing deidentified details of purchases.
custid custname, item, amount should be displayed without any masking
Password field should not be added in the view
Only last four characters should be revealed in loginid and all the remaining characters should be masked with
Only last three characters should be revealed in mobileno all the remaining characters should be masked with x
Only last four characters should be revealed in cardno all the remaining characters should be masked with x
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