827 views
0 votes
0 votes
Consider an entity employee with attributes (EmpID, Empname, Deptname, Salary, mobno, Project ID, Designation) No two employee with same name and No two employee with same ID. An employee can have more than 1 mobileno and can work on one project only. A relation is designed satisfying the requirement of 2NF. The number of super keys there in the table containing attribute project ID are __________.

1 Answer

4 votes
4 votes

There r total 7 attributes first seperate Project ID now we have 6 attributes 
now we have 2 candidate keys EmpID, Empname as given in question
  super keys using EmpID =25=32
 super keys using Empname 25=32
repeated superkeys =24 =16
 so by using principle of enclusion-exclusion 
n(EmpID U Empname)=32+32-16=48
now add Project ID to all these 48 
ans =48

Related questions

9 votes
9 votes
4 answers
2
saket nandan asked Apr 7, 2016
15,952 views
a relation R(A,B,C,D,E,F,G,H)and set of functional dependencies are {CH->G,A->BC,B->CFH,E->A,F->EG }then how many possible super keys are present ?
4 votes
4 votes
1 answer
3
Akash Kanase asked Jan 15, 2016
734 views
I think here even with Ph is removed from table we still get 12 Super keys. Because Salary & One of CK must be there.
0 votes
0 votes
0 answers
4
supratikde707 asked Jan 9
169 views
r=(a1,a2,a3,...a8) assumne that a1a2a3 is a canidate key and other cks we dont know.Then find the number of possible candidate keys and number of superkeys?