Professional Documents
Culture Documents
SE-4A - Activity # 2 - 19F-0917
SE-4A - Activity # 2 - 19F-0917
DB COURSE
Zainab Ijaz
19F-0917
SE-4A
MINI ACTIVITY
Question 1:
1: 1) Grant All ON employees to Asma;
2) Grant SELECT, INSERT, UPDATE, DELETE ON employees to
Asma;
Question 2:
1: Revoke DELETE ON employees to Ali;
Question 3:
1: Cust#, Inv#, Item#→TotQTY, Sprice, InvDate, ItemName
We have to separate the table to avoid data anomalies. I have divide
them into following:
1: Item#→ItemName,TotQTY, Sprice(assuming it is a price of product)
Item# functionally determines the itemName, the quantity came
and their price.
2: Inv#→Item#
Inv# functionally determines the item# that which item is sold.
3: cust#→inv#
cust# functionally determines inv# which he/she got