You are on page 1of 3

DB MINI activity

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;

2: Grant SELECT ON employees to public;

Question 2:
1: Revoke DELETE ON employees to Ali;

2: Revoke All ON employees to Ali;

3: Revoke SELECT ON employees from public;

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

2: Manufacturer_Date→PartID, Pname, Pprice


We have to separate the table to avoid data anomalies. I have divide
them into following:
1: PartID→ Pname, Pprice, Manufacturer_date
 parts Id identifies the pname, pprice, manufacturer date i.e.,
PartID functionally determines the Pname, Pprice and
manufacturer_date
2: Pname→PartID, Pprice
 Pname identifies the PartID and their price i.e., Pname
functionally determines the PartID, Pprice

You might also like