Question
1. Create a database Bank, and then create a table customer with the columns (Cust_id, Cust_name, login_id, password, Acc_no, Aadhar_no, PAN_no, Mobile, Email, Bal_amount) (i)
1. Create a database Bank, and then create a table customer with the columns (Cust_id,
Cust_name, login_id, password, Acc_no, Aadhar_no, PAN_no, Mobile, Email, Bal_amount)
(i) Create a view Cust_masking to de-identify customer details as
a. No masking on Cust_id, Cust_name, Bal_amount
b. Apply masking on login_id to reveal only last five positions and mask all the remaining with symbol x.
c. Apply masking on password to mask all positions with symbol *
d. Apply masking on Acc_no to reveal only last four positions and all the remaining should be masked.
e. Apply masking on Aadhar_no to reveal first two and last two positions and mask all the remaining with symbol #
f. Apply masking on PAN_no to reveal first two and last four positions and mask all the remaining with symbol $
g. Apply masking on mobile to reveal last three positions and mask all the remaining with symbol *
2. Write SQL statement to
(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
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