Computer AwarenessVery hardIBPS SO IT Officer
A relation R(A, B, C) has A as its only candidate key. How many superkeys does R have?
- A. 4
- B. 3
- C. 7
- D. 1
Correct answer: A. 4
A superkey is any attribute set containing a key. Sets containing A: {A}, {A,B}, {A,C}, {A,B,C}, which makes 4. 7 counts every non-empty subset.
हिंदी में
रिलेशन R(A, B, C) की एकमात्र कैंडिडेट की A है। R की कितनी सुपरकीज़ हैं?
- A. 4
- B. 3
- C. 7
- D. 1
उत्तर: A. सुपरकी कोई भी एट्रिब्यूट-समुच्चय है जिसमें की शामिल हो। A वाले समुच्चय: {A}, {A,B}, {A,C}, {A,B,C}, जो 4 होते हैं। 7 प्रत्येक अरिक्त उपसमुच्चय को गिनता है।
More Computer Awareness questions
- 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?
- A column Bonus holds the values 10, 20, NULL and 30 in four rows. What does SELECT AVG(Bonus) return?
- Which statement about DELETE and TRUNCATE in SQL is correct?
- In which order does a database logically process the clauses of a SELECT statement?
- The condition WHERE Salary BETWEEN 20000 AND 30000 selects rows whose salary is: