- #1
shivajikobardan
- 674
- 54
- Homework Statement
- find candidate keys
- Relevant Equations
- Normalization in database
Consider a relation given below SP(Sno,Sname,Pno,Qty). Here Sname is considered unique for each Sno. So, FD of above relation is:
Sno,Pno -> Qty
Sname,Pno -> Qty
Sno ->Sname
Sname->Sno
Sname,Sno is one primary key(it's worded in question). What's the other? How to find it is my question. I've heard about taking closures but here there are 2 attributes in the LHS so I can't see a way to do closures.
Sno,Pno -> Qty
Sname,Pno -> Qty
Sno ->Sname
Sname->Sno
Sname,Sno is one primary key(it's worded in question). What's the other? How to find it is my question. I've heard about taking closures but here there are 2 attributes in the LHS so I can't see a way to do closures.