1,565 views
0 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 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

Position:
Show:

Related questions

1 1 vote
0 0 answers
1.0k
1.0k views
Shubhanshu asked Dec 3, 2017
1,002 views
Q1) Consider the relation with n attributes if any 2 attribute is a candidate key, then the total number of candidate keys are___ ?Then what will be the generalized formu...
11 11 votes
5 answers 5 answers
22.8k
22.8k views
saket nandan asked Apr 7, 2016
22,753 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 4 votes
1 1 answer
1.1k
1.1k views
Akash Kanase asked Jan 15, 2016
1,144 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 0 votes
1 1 answer
553
553 views
supratikde707 asked Jan 9, 2024
553 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?