Computer AwarenessVery hardIBPS SO IT Officer
A relation R(A, B, C, D) has the functional dependencies AB → C, C → D and D → A. Which are ALL its candidate keys?
- A. AB, BC and BD
- B. AB only
- C. AB and BC only
- D. B only
Correct answer: A. AB, BC and BD
B appears on no right side, so every key contains B, but B alone gives only B. AB → C → D gives ABCD; BC → D → A gives ABCD; BD → A, then AB → C gives ABCD. So AB, BC and BD are all minimal keys.
हिंदी में
रिलेशन R(A, B, C, D) में फ़ंक्शनल निर्भरताएँ AB → C, C → D और D → A हैं। इसकी सभी कैंडिडेट कीज़ कौन-सी हैं?
- A. AB, BC और BD
- B. केवल AB
- C. केवल AB और BC
- D. केवल B
उत्तर: A. B किसी दाएँ पक्ष में नहीं है, इसलिए प्रत्येक की में B होता है, पर अकेला B केवल B देता है। AB → C → D से ABCD मिलता है; BC → D → A से ABCD; BD → A, फिर AB → C से ABCD। इसलिए AB, BC और BD सभी न्यूनतम कीज़ हैं।
More Computer Awareness questions
- EMPLOYEE(EmpID, Name, DeptID, DeptName) has key EmpID, and DeptID → DeptName also holds. All values are atomic. What is the highest normal…
- A relation is in Boyce–Codd Normal Form (BCNF) when:
- A CUSTOMER table keeps several phone numbers in one Phone column, separated by commas (for example '98xxxxxx01, 98xxxxxx02'). Which normal…
- A relation R(A, B, C) has A as its only candidate key. How many superkeys does R have?
- Table ACCOUNT has 5 rows and table NOMINEE has 4 rows. Three accounts match exactly one nominee each, and two accounts match none. How…
- Table A has 6 rows and 3 columns, and table B has 4 rows and 2 columns. What does SELECT FROM A, B (with no WHERE clause) return?