Lec-13: Super key in DBMS in HINDI | ये Question Competition Exams में अक्सर पूछा गया है

Lec-13: Super key in DBMS in HINDI | ये Question Competition Exams में अक्सर पूछा गया है

Understanding the Concept of Super Keys

Introduction to Super Keys

  • The video introduces the concept of super keys, requested by students for clarity on this topic.
  • A super key is defined as a combination of attributes that can uniquely identify two tuples in a table.

Candidate Key vs. Super Key

  • The candidate key is emphasized as a crucial concept in DBMS, which uniquely identifies tuples.
  • An example is provided using a student table with attributes: roll number, name, and age; where roll number serves as the candidate key.
  • If additional attributes (name or age) are added to the candidate key (roll number), it becomes a super key.

Characteristics of Super Keys

  • A candidate key is minimal; adding any attribute to it results in a super key.
  • Not all combinations of attributes form a super key; at least one candidate key must be present.

Calculating Super Keys

Power Set Concept

  • The video discusses numerical questions regarding how many super keys are possible given N attributes and one candidate key (A1).
  • It explains the power set concept, where each attribute has two choices: included or not included.

Total Number of Super Keys

  • If A1 is mandatory in every subset due to being a candidate key, then there are 2^(N - 1) possible combinations for other attributes.

Multiple Candidate Keys Scenario

Two Candidate Keys

  • When both A1 and A2 are considered as candidate keys, each contributes 2^(N - 1).

Accounting for Common Sets

  • The total possibilities from both candidates need adjustment for overlapping sets due to commutative properties between A1 and A2.

Final Calculation

Understanding Super Keys and Candidate Keys

Concept of Super Key

  • The concept of a super key is straightforward, yet it often confuses students when presented in exam questions like those in UGC NET and GATE.
  • A super key can be derived from candidate keys; for instance, if A1 and A2 are part of a composite candidate key, they can generate multiple combinations.

Combinations of Candidate Keys

  • When considering two candidate keys (A3 and A4), the number of possible super keys remains consistent at 2^n - 2. This formula applies to any combination of elements within the set.
  • It’s important to note that many candidate keys may share common super keys, necessitating adjustments in calculations to avoid double counting.

Calculation Insights

  • The total number of unique super keys must account for overlaps among different candidate keys, which could lead to redundancy in the final count.
Video description

👉Subscribe to our new channel:https://www.youtube.com/@varunainashots A superkey is a combination of columns that uniquely identifies any row within a relational database management system (RDBMS) table. Link of Candidate Key: https://youtu.be/mMxjKFiIKxs 0:00 - Super Key 2:42 - Numerical ► Database Management System(Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiFAN6I8CuViBuCdJgiOkT2Y Other subject-wise playlist Links: -------------------------------------------------------------------------------------------------------------------------------------- ►Design and Analysis of algorithms (DAA): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHcmS4i14bI0VrMbZTUvlTa ►Computer Architecture (Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHMonh3G6QNKq53C6oNXGrX ► Theory of Computation https://www.youtube.com/playlist?list=PLxCzCOWd7aiFM9Lj5G9G_76adtyb4ef7i ►Artificial Intelligence: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHGhOHV-nwb0HR5US5GFKFI ►Computer Networks (Complete Playlist): https://www.youtube.com/playlist?list=PLxCzCOWd7aiGFBD2-2joCpWOLUrDLvVV_ ►Operating System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGz9donHRrE9I3Mwn6XdP8p ►Structured Query Language (SQL): https://www.youtube.com/playlist?list=PLxCzCOWd7aiHqU4HKL7-SITyuSIcD93id ►Discrete Mathematics: https://www.youtube.com/playlist?list=PLxCzCOWd7aiH2wwES9vPWsEL6ipTaUSl3 ►Compiler Design: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEKtKSIHYusizkESC42diyc ►Number System: https://www.youtube.com/playlist?list=PLxCzCOWd7aiFOet6KEEqDff1aXEGLdUzn ►Cloud Computing & BIG Data: https://www.youtube.com/playlist?list=PLxCzCOWd7aiHRHVUtR-O52MsrdUSrzuy4 ►Software Engineering: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEed7SKZBnC6ypFDWYLRvB2 ►Data Structure: https://www.youtube.com/playlist?list=PLxCzCOWd7aiEwaANNt3OqJPVIxwp2ebiT ►Graph Theory: https://www.youtube.com/playlist?list=PLxCzCOWd7aiG0M5FqjyoqB20Edk0tyzVt ►Programming in C: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmiGl_DOuRMJYG8tOVuapB ►Digital Logic: https://www.youtube.com/playlist?list=PLxCzCOWd7aiGmXg4NoX6R31AsC5LeCPHe --------------------------------------------------------------------------------------------------------------------------------------- Our social media Links: ► Subscribe to us on YouTube: https://www.youtube.com/gatesmashers ►Subscribe to our new channel: https://www.youtube.com/@varunainashots ► Like our page on Facebook: https://www.facebook.com/gatesmashers ► Follow us on Instagram: https://www.instagram.com/gate.smashers ► Follow us on Instagram: https://www.instagram.com/varunainashots ► Follow us on Telegram: https://t.me/gatesmashersofficial ► Follow us on Threads: https://www.threads.net/@gate.smashers -------------------------------------------------------------------------------------------------------------------------------------- ►For Any Query, Suggestion or notes contribution: Email us at: gatesmashers2018@gmail.com #SuperKey#KeysinDatabase#DBMS#GATE#NET#nielit#collegeUniversityexams