Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F = {CH → G, A → BC, B → CFH, E → A, F → EG} is a set of functional dependencies (FDs) so that F+ is exactly the set of FDs that hold for R. How many candidate keys does the relation R have?

Relation R has eight attributes ABCDEFGH. Fields of R contain only atomic values. F = {CH → G, A → BC, B → CFH, E → A, F → EG} is a set of functional dependencies (FDs) so that F+ is exactly the set of FDs that hold for R. How many candidate keys does the relation R have? Correct Answer 4

The correct answer is “option 2”.

CONCEPT:

A set of attributes that uniquely identify tuples in a table is called the Candidate key.

It is a super key with no repeated attributes.

A table can have multiple candidate keys but only one primary key.

The primary key can be selected from the candidate keys.

Candidate keys may have multiple attributes.

A functional dependency is a relationship or dependency that exists between two attributes.

Closure means the complete set of all possible attributes that can be functionally derived from the functional dependencies.

Closure of C is denoted by C+.

EXPLANATION

According to the given dependencies,

CH → G

A → BC

B → CFH

E → A

F → EG

Since D is not part of any functional dependency so it can be a candidate key or maybe part of a candidate key.

To find more candidate keys add A, B, C, D, E, G, and H to D & find its closure:

(AD)+ = {ABCDEFGH}

(BD)+ = {ABCDEFGH}

(CD)+ = {CD}

(ED)+ = {ABCDEFGH}

(FD)+ = {ABCDEFGH}

(GD)+ = {GD}

(HD)+ = {HD}

Since AD, BD, ED and FD gives all attributes, so they are candidate keys.

Hence, the correct answer is “option 2”.

Related Questions

The following are the criteria set by a Retail outlet for the selection of candidates for the post of Store In charge in a reputed mall. 1. The candidate must be a graduate in any stream with minimum of 50% marks. 2. The candidate must have Minimum of 5 years of Sales experience in Retail. 3. The age of the candidate should not be less than 25 years and more than 34 years as on 1st October, 2019. (a) If a candidate satisfies all the criteria except 2 as given above but has an MBA degree and has minimum of 2 years of work experience in sales, she/he must be sent to the General Manager, Recruitment for further interview. (b) If a candidate satisfies all the criteria except 3, but has more than 5 years experience as a Group Manager and above in Sales managing a team of sales executives, then she/he must be sent to the Regional Manager, Sales & Marketing, for further interview Based on the above criteria and conditions, analyze and decide which of the following course of action should be taken for the candidate whose description is provided below. Please note that you are not to assume anything other than the given information. Sujoy is a graduate with 55% marks and MBA through Correspondence. He was born on Sept 20, 1990. He has 1 year of work experience as a sales executive and 2 years of experience as a Group Manager, Sales. On the basis of the information as given above, which of the following decisions would be appropriate