Answered step by step
Verified Expert Solution
Link Copied!

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 (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
No masking on Cust_id, Cust_name, Bal_amount
Apply masking on login_id 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 Acc_no to reveal only last four positions and all the remaining should be masked.
Apply masking on Aadhar_no to reveal first two and last two positions and mask all the remaining with symbol #
Apply masking on PAN_no 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 *
2. Write SQL statement to (Use the schema in Q1)
(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
3. 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: cust_id, login_id, password, cust_name,
mobile_no, item, amount, card_no. 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 de-identified details of purchases.
cust_id, cust_name, 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 login_id and all the remaining characters should be masked with *
Only last three characters should be revealed in mobile_no all the remaining characters should be masked with x
Only last four characters should be revealed in card_no all the remaining characters should be masked with x

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Introduction To Constraint Databases

Authors: Peter Revesz

1st Edition

1441931554, 978-1441931559

More Books

Students also viewed these Databases questions