Illustration on Finding Candidate Key | Example

แชร์
ฝัง
  • เผยแพร่เมื่อ 9 ม.ค. 2025

ความคิดเห็น • 253

  • @zorak6611
    @zorak6611 9 หลายเดือนก่อน +64

    9 years later, it is still helpful. thanks man

    • @Dreamerrrr__007
      @Dreamerrrr__007 7 หลายเดือนก่อน +4

      Sir*😂

    • @AyushSingh-nm6tq
      @AyushSingh-nm6tq 6 หลายเดือนก่อน +1

      Man * not Ma'am 😂​@@Dreamerrrr__007

  • @therealgunner707
    @therealgunner707 5 ปีที่แล้ว +12

    You're the goat bro
    - All CS students worldwide

  • @mustafakucuk1338
    @mustafakucuk1338 5 ปีที่แล้ว +5

    not just this video, your all videos which i watched are probably the most clear and not time consuming videos about this topic

  • @sonubetaa
    @sonubetaa 9 ปีที่แล้ว +72

    our DBMS lecturer recommended your channel in class, thats how awesome your explaination is. thank you so much ! :D

  • @Edredo
    @Edredo  10 ปีที่แล้ว +3

    please join on techtud.com
    Your doubts will get answered there really quick.

    • @babyagarwal9894
      @babyagarwal9894 9 ปีที่แล้ว

      Thank u so much.....mujhe abhi tk candidate key derive karna nhi aata tha bt apka ek single video dekh ke he mujhe candidate key ache se aa gya....rocking tutorial nd ur teaching technique is too good...pls give some more examples of canonical prob...

    • @dontlookup1337
      @dontlookup1337 8 ปีที่แล้ว

      Thank you for your great work!!!!

  • @dylanc9242
    @dylanc9242 5 ปีที่แล้ว +17

    5 years later still very helpful. Thank you for posting this, it makes so much more sense the way you explained it!

  • @kevin.michaels
    @kevin.michaels 6 ปีที่แล้ว +14

    Mate, you have gifted my 10% in one of my master's papers. Really appreciate the tutorials.

  • @brucekang6226
    @brucekang6226 2 ปีที่แล้ว +2

    Lifesaver. I am currently a student from UNSW and the course: database management was given by a Chinese PHD student who only knows how to read the PDF instructure without his own idea and explaination. Thanks again for helping me to crash the assignment.

    • @d.karthikcreations3204
      @d.karthikcreations3204 10 หลายเดือนก่อน

      are you from alliance university or wot bro💀

  • @mrk_2019
    @mrk_2019 10 ปีที่แล้ว +8

    You saved my life bro....... Just understood this few hours before my final exam..

    • @muhieddineshebaro6635
      @muhieddineshebaro6635 4 ปีที่แล้ว +2

      Did you succeed your exam? Did you get your degree yet or what?

    • @mrk_2019
      @mrk_2019 4 ปีที่แล้ว +12

      @@muhieddineshebaro6635 Wow.. I posted this comment 5 years ago. Yes I got my degree 5 years ago and and now working as a senior software solution architect for a major tech company :)

    • @muhieddineshebaro6635
      @muhieddineshebaro6635 4 ปีที่แล้ว +8

      @@mrk_2019 omg lol. I did not expect you to reply. Congrats on your degree. Hard work which shows by your comments pays off xD screenshot them and keep them as memories

    • @priyanshgarg1292
      @priyanshgarg1292 ปีที่แล้ว

      sup@@muhieddineshebaro6635

    • @AyushSingh-nm6tq
      @AyushSingh-nm6tq 6 หลายเดือนก่อน +1

      9 year's still helpful

  • @Ashkan55628
    @Ashkan55628 5 ปีที่แล้ว +1

    One of the best tutorials about how to find candidate key
    Thanks a lot

  • @AbhikRoy-jq4ib
    @AbhikRoy-jq4ib 8 ปีที่แล้ว +11

    I think qus ask for finding the c.key, so by definition c.key is minimal super keys. so after taking 2 combination we have to stop, no need to proceed further.

  • @rekhauniyal04
    @rekhauniyal04 9 ปีที่แล้ว +49

    dude you are awesome

  • @DileepKumar-od8qn
    @DileepKumar-od8qn 5 หลายเดือนก่อน

    no other lectures give this simple explanation. In the Beginning i thought it was not effective because it is a old lecture don't think like that it is the best lecture on candidate keys😍

  • @lordxkronoz
    @lordxkronoz 9 หลายเดือนก่อน

    Man you are a lifesaver as well as a timesaver!

  • @vishaldhingra8458
    @vishaldhingra8458 10 ปีที่แล้ว +1

    You are the best bro, No book explain this much better than u do., Ur videos series are very nice , i became fan of yours , super job, keep helping others

  • @GodGod1337
    @GodGod1337 9 ปีที่แล้ว +4

    Nice :") I finally find the explaination that will allowed me to continue to read my lecture slides

  • @manideeptadala6699
    @manideeptadala6699 ปีที่แล้ว

    Your style of teaching was so understandable..

  • @amankarn8733
    @amankarn8733 ปีที่แล้ว +5

    8 year later ,it is still very helpful

  • @mattkan3275
    @mattkan3275 4 ปีที่แล้ว +1

    you teach even better than the university professor

  • @sushantkumar3111
    @sushantkumar3111 ปีที่แล้ว

    Nice explanation now my concept got cleared after 1.5 month thanks once again

  • @shauryagahlot376
    @shauryagahlot376 11 หลายเดือนก่อน

    One of the best explanation so far

  • @Nikkudon2001
    @Nikkudon2001 3 ปีที่แล้ว

    My DBMS lecturer only explained about the normalisation and functional dependencies,but did not explained the main thing i.e. hoe to find the candidate key which you explained very well. Thank you

  • @yoursaritrai7274
    @yoursaritrai7274 5 ปีที่แล้ว +1

    Beautiful easy explanation . Very simple illlustration .

  • @tabitharotich1972
    @tabitharotich1972 4 ปีที่แล้ว

    The best channel for DBMS. Good work!!

  • @bhumikasingh9335
    @bhumikasingh9335 หลายเดือนก่อน

    woh its been 10 years and this video is so accurate ...

  • @SuneelKumar-wy4oi
    @SuneelKumar-wy4oi 8 ปีที่แล้ว

    a best way to study and preparation for GATE

  • @dovidsamuels5709
    @dovidsamuels5709 4 ปีที่แล้ว +2

    Did you have to check all possible subsets of the relation? How could you rule out certain paths without checking everything?

  • @Lackingbehind
    @Lackingbehind ปีที่แล้ว +2

    Why D+ (closure) is not considered as a candidate key? In previous video you said that the attribute which is not present on the right side can be included in candidate key

    • @aniketsingh4403
      @aniketsingh4403 ปีที่แล้ว +2

      From d you can't visit other entities that's why d is not candidate key

  • @karabidas72
    @karabidas72 8 ปีที่แล้ว

    really nice..Makes my concept is very clear..thank you..

  • @Simon-qw5cm
    @Simon-qw5cm 3 ปีที่แล้ว

    Thanks my man! This was so helpful!! Really good explanation

  • @siddhantsanadhaya8579
    @siddhantsanadhaya8579 2 ปีที่แล้ว

    Very Helpful, keep up the good work.

  • @lenamaier8507
    @lenamaier8507 7 ปีที่แล้ว +3

    how do you choose a key from the candidates now? Can you just randomly decide which one you want to take?

  • @yuyuhuang1897
    @yuyuhuang1897 6 ปีที่แล้ว

    omg! Thanks so much! you are my lifesaver for final tmr

  • @chandlerbing5434
    @chandlerbing5434 5 ปีที่แล้ว

    Better explanation then our professors

  • @ugovictor5960
    @ugovictor5960 วันที่ผ่านมา

    You're the greatest man

  • @vinaychoudhary5155
    @vinaychoudhary5155 6 ปีที่แล้ว +15

    what if all values are present in right side

    • @falguni1185
      @falguni1185 5 ปีที่แล้ว +2

      Not possible. In such case every attribute is determined by some other which means there is no key.

    • @manojmaurya9683
      @manojmaurya9683 4 ปีที่แล้ว

      @@falguni1185 but there is in ACE test series it happens, all the attributes were at right side that's why i marked 0 key as answer but they had given 4 candidate key in their original answer now I'm stressed why these all happens without some logic
      Btt now i got everything from some source that if everything is present on right side doesn't means there is 0 key there might be some keys btt not necessarily to have any attributes in every candidate key

  • @siddharthnaharsiddie
    @siddharthnaharsiddie 10 ปีที่แล้ว +1

    a very nice set of explaination to the database concepts...one doubt, [DABEFCH] won't act as a candidate key??

  • @xenioschristides9828
    @xenioschristides9828 4 ปีที่แล้ว +1

    So, to find a Candidate Key it need all the letters to be on the right hand side? And we have to try any possibility to find as much as we can?

  • @IlyasHabeeb
    @IlyasHabeeb 9 ปีที่แล้ว +3

    For this question:
    R = (A,B,C,D,E)
    A -> BC
    CD -> E
    B -> D
    E -> A
    All the attributes are present of the right side,ie, A,B,C,D,E. So do I conclude that there is no candidate key in R?

    • @danfratamico
      @danfratamico 9 ปีที่แล้ว

      +Ilyas Habeeb There are a few candidate keys. Here are a few of them:
      A --> ABCDE
      E --> EABCD
      AB --> ABECD

    • @sujen2009
      @sujen2009 8 ปีที่แล้ว +2

      +Daniel Fratamico I think Ab wont be candidate key as A is already candidate key...

    • @rajveersingh2056
      @rajveersingh2056 7 ปีที่แล้ว

      not AB, because it is reducible to A

    • @KS-ng3mx
      @KS-ng3mx 7 ปีที่แล้ว

      nice q....thanks

    • @ChandrapalSd
      @ChandrapalSd 3 ปีที่แล้ว

      @@danfratamico How can A determine D ?

  • @raveensharma6738
    @raveensharma6738 9 ปีที่แล้ว

    very nice video having a small trick to find candidate keys quickly.

  • @Megamin42069
    @Megamin42069 9 ปีที่แล้ว

    Amazing videos man.. Keep up the good work

  • @Hannu337
    @Hannu337 4 ปีที่แล้ว

    Simple Nd understood.....very nice

  • @saisrikar7987
    @saisrikar7987 6 ปีที่แล้ว

    Very helpful videos. Thanks a lot sir!

  • @HarshGaikwadLetsExplore
    @HarshGaikwadLetsExplore 5 ปีที่แล้ว

    Thanks a lot. That was very useful and simple to understand.

  • @AmazingWorld-fw9oc
    @AmazingWorld-fw9oc 3 ปีที่แล้ว

    Never knew this was so easy.

  • @iamPramuk
    @iamPramuk 6 ปีที่แล้ว

    Fully Understood Thank you so much bro , you are awesome

  • @harshdhaundiyal2241
    @harshdhaundiyal2241 7 ปีที่แล้ว

    Very Helpful Thanks for uploading

  • @amarkar11
    @amarkar11 3 ปีที่แล้ว +1

    But sir.. How we will be so sure..,, there will be not another candidate key.. Like you say " I have tried " But how could we be sure with this??

  • @Icevampir
    @Icevampir 10 ปีที่แล้ว +2

    Good Video..
    But I give you an Example where you the principle seems not to work:
    (A,B,C) ; A -> B, B->C, C->B
    ..so in this scenario every attribute is a candidate key..

  • @sarthakdalabehera4873
    @sarthakdalabehera4873 4 ปีที่แล้ว

    thank you sir,your lectures are really helpfull

  • @TheGUIDEPORTALatSASHWATIS
    @TheGUIDEPORTALatSASHWATIS 8 ปีที่แล้ว +4

    i have a question which is that,,when i got that ' D' is not present in the right we started making pairs wd D to find the candidate key right.but my qustion is to find candidate key is it mandatory that always we have to make pair up with D to find candidate key?

    • @aishikbhattacharya4870
      @aishikbhattacharya4870 8 ปีที่แล้ว +6

      Yess.. A candidate key will not be present on the right hand side of the relation

    • @sterndefiant2704
      @sterndefiant2704 8 ปีที่แล้ว +3

      yes since D is not present on the Right side, it is necessary that it will always be a part of Candidate key.
      Lets say there's an attribute X in a relation/table, and its such that no other attribute determines X(only X determines X itself), but in the table we need a Key that will always determine the records uniquely, in order to X to be determined no other attribute will be sufficient hence to determine records X will always be there in the Candidate/Primary key.

  • @ninadpatwardhan3822
    @ninadpatwardhan3822 4 ปีที่แล้ว +1

    I have a question, Since DA and DB both are candidate keys, why can't we consider DBA as a candidate key?

  • @ceroorec2153
    @ceroorec2153 ปีที่แล้ว

    Thank you for your very helpful videos

  • @mania-ii7qr
    @mania-ii7qr 9 ปีที่แล้ว

    VERY GOOD.........MAKES CONCEPT VERY CLEAR..........GREAT WORK....THANX ALOT

  • @Sabong
    @Sabong 8 ปีที่แล้ว +1

    what if all of R was on the right hand side? will the candidate keys be combinations of the determining attributes?
    thanks!

  • @creator8001
    @creator8001 6 ปีที่แล้ว +1

    What if on right hand side you got all the elements.. how do you find the candidate key
    R={ABCDE} A->BC, CD->E, B->D, E->A . FIND ALL POSSIBLE CANDIDATE KEY

  • @dimonyin429
    @dimonyin429 5 ปีที่แล้ว

    Yay, I from CityU also recommend this one

  • @arghanildas6195
    @arghanildas6195 7 ปีที่แล้ว +1

    Sir, i have a question that, as we know that ,the attributes which are not present in the right and side are present in candidate key. BUT ,there are some questions where all the given attributes are present on the right and side . SO, on that case what condition / or which attribute we have to consider for candidate key ???

  • @davumemer
    @davumemer 2 หลายเดือนก่อน

    Still helpful after 10 years

  • @anoniem012
    @anoniem012 5 ปีที่แล้ว +1

    Thanks m8! SO to India

  • @ravisss7535
    @ravisss7535 4 ปีที่แล้ว +1

    Bro you are great 👍 👌

  • @garav8800
    @garav8800 5 ปีที่แล้ว +1

    If every attribute inright hand side .. then which should take first

  • @AkashVermaNITian
    @AkashVermaNITian 9 ปีที่แล้ว

    Nicely Done....just 1 thing... Can you re-explain your last word i.e. when I got ,say 4 Ck's, and I am doubtful that there may be one more CK so the answer might be 5 and not 4, then in such situation how should I confirm myself that there can not be any further CK's in this Relation?

  • @bechirjamousi6696
    @bechirjamousi6696 4 ปีที่แล้ว

    I have a question, if i have sets of 2 attributes that are in the set of candidate keys, is it useless to check sets of 3 attributes? Because the definition of candidate key is: A minimal set of attributes necessary to identify a tuple

  • @sithibanu9019
    @sithibanu9019 5 ปีที่แล้ว

    very good explanation.

  • @devniwijenayake52
    @devniwijenayake52 9 ปีที่แล้ว

    thank you!!! It is really helpful

  • @avneetbisht3463
    @avneetbisht3463 25 วันที่ผ่านมา

    All the combination using DA can also be candidate key like DAB?

  • @brajenism
    @brajenism 7 ปีที่แล้ว +1

    if sir all attributes present in rhs then how will define

  • @zeyneptokgozlu7020
    @zeyneptokgozlu7020 5 ปีที่แล้ว

    thank you so much it help me lot !!

  • @53anubhav
    @53anubhav 10 ปีที่แล้ว +5

    Should not (DBC) be a Candidate Key?

    • @rohitmondal6876
      @rohitmondal6876 7 ปีที่แล้ว +23

      Candidate Key is minimal set of super key. DB is already a Candidate Key, hence you are not allowed to pair it up with any others.

    • @palitojeremy
      @palitojeremy 5 ปีที่แล้ว

      @@rohitmondal6876 You are 2 years late mate. Then again, I am too.

  • @ruhani_choudhary
    @ruhani_choudhary 7 ปีที่แล้ว

    can we make the combinations of D with attributes on right hand side, as they are the only remaining attributes to check for candidate keys?

  • @geogaddi84
    @geogaddi84 2 ปีที่แล้ว

    There is a way to know when you don't have to go on to higher element amounts and check, but I forget what that is. Seems like it would be very important in a problem like this though...

    • @geogaddi84
      @geogaddi84 2 ปีที่แล้ว

      I just looked it up. It's because one of the conditions to be a candidate key is that NONE of the subsets in a candidate key are allowed to be a candidate key. Since we have DA, DB, DE, and DF as candidate keys, this would greatly reduce the amount of other combinations available to you and the rest didn't work out according to the presenter anyway. I hope that helps anyone who cares to know. Haha

  • @ayushsrivastava5278
    @ayushsrivastava5278 8 ปีที่แล้ว

    sir how many combinations we must have to take if we are not giving any mcq type exams rather in which we need to solve the full problem, and as u have found candidate key can u tell how we can find super key.

  • @fernandooliveira-cu3vd
    @fernandooliveira-cu3vd 7 ปีที่แล้ว

    Hello my dear! can you please solve some good exercises of normalization?

  • @immayurpanchal
    @immayurpanchal 7 ปีที่แล้ว +1

    Hello Sir,
    I'm still in doubt. You told that we need to check more combination if possible in this question but Candidate Key is nothing but minimal Super Key then if there are other possible then why should I try them?
    For Example : In your example why should I move to using 3 values (DCH Closure) ?
    Give any Counter Example to clear my doubt!
    And Your teaching way is really awsome ! Thanks a lot and keep making more videos.

    • @anushiya4453
      @anushiya4453 ปีที่แล้ว

      did you find out ?

    • @immayurpanchal
      @immayurpanchal ปีที่แล้ว +2

      @@anushiya4453 It's been 6 years. I don't remember now. I'm sorry

    • @anushiya4453
      @anushiya4453 ปีที่แล้ว

      It's ok ,no problem ✌️

  • @shreenthasleem2820
    @shreenthasleem2820 11 หลายเดือนก่อน

    If we take DAH closure we would get DAH neh that time as we have already confirmed that DA is a candidate key so won't DAH WOULD BE AN CANDIDATE KEY?

  • @himansudash6474
    @himansudash6474 3 ปีที่แล้ว

    If there is only D closure(i.e. D is candidate key) ,is it necessary to calculate other with D or not??

  • @veerpratapsingh4001
    @veerpratapsingh4001 8 ปีที่แล้ว

    pls give a lecture on finding superkey and primary key in the same type of question discussed in video

  • @spicygamerzz6141
    @spicygamerzz6141 5 ปีที่แล้ว +1

    DAG bhi to ho skta????

  • @nilangtrivedi3221
    @nilangtrivedi3221 8 ปีที่แล้ว

    Why u dont have option of
    Shri Bhagubhai Mafatlal Polytechnic (Mumbai) in organisation
    I want to register ...

  • @pumpkyvlogs
    @pumpkyvlogs 2 ปีที่แล้ว

    In the closure of DC, won’t G be determined by CH?

  • @koshalraj5995
    @koshalraj5995 8 ปีที่แล้ว

    Why [DBA] cannot be a candidate key?
    Also if A,B,C,D,E,F,G,H all would be present in right hand side of FDs then how to proceed?

  • @AAABBBCCC122
    @AAABBBCCC122 9 ปีที่แล้ว

    Thank you so much for your help.

  • @vaishnaviganseh2884
    @vaishnaviganseh2884 5 ปีที่แล้ว

    is it always on trial and error basis ? Is there a way to know how many candidate keys there are ?

  • @gceltpremierleague7166
    @gceltpremierleague7166 7 ปีที่แล้ว

    sir is "DAB" not candidate ki?.......then number of candidate key will more than 4....................please clear my confusion......

  • @NaveenKumarasinghe
    @NaveenKumarasinghe 9 ปีที่แล้ว

    Thank you! Isn't [CHAD]+ a candidate key?

    • @piyushsinha636
      @piyushsinha636 9 ปีที่แล้ว +2

      I don't think [CHAD]+ is a candidate key as [DA]+ already is a candidate key, so there is no point of having a combination of another attribute with a candidate key.

    • @yawaylfskyyy
      @yawaylfskyyy 9 ปีที่แล้ว +2

      ***** It is, but he's trying to find the set of minimal candidate keys

    • @supratikmajumdar4606
      @supratikmajumdar4606 9 ปีที่แล้ว +2

      ***** [CHAD]+ = CHADGBF, E is not determined here

    • @Lakesider
      @Lakesider 9 ปีที่แล้ว

      +Supratik Majumdar [AD] is already a set of candidate keys, so [CHAD] must be a set of candidate keys, the only problem here is you only need to find the minimum candidate keys.

    • @suvarthisarkar5811
      @suvarthisarkar5811 9 ปีที่แล้ว +2

      +Naveen Kumarasinghe (නවියා)
      No because by definition of candidate key, none of its subset is a candidate key...but AD is!

  • @chirasreepal2672
    @chirasreepal2672 4 ปีที่แล้ว

    Awesome thank you very much

  • @prosperbuteh4412
    @prosperbuteh4412 4 ปีที่แล้ว +1

    Amazing video.
    But I think DEG, is also a Candidate Key.

    • @TheBeatles986
      @TheBeatles986 4 ปีที่แล้ว +1

      A candidate key is the minimal super-key for a relation. Notice that DE is already a canidate key. Then any other key that has DE in it, like DEG or DEA or DEABC etc, is not a canidate key because, while it is a super-key for the relation, it is not the minimal super key

    • @PirocoLouco
      @PirocoLouco 2 ปีที่แล้ว

      @@TheBeatles986 Thank you, I really needed that explanation

  • @deepneon
    @deepneon 6 ปีที่แล้ว

    can I randomly pick any candidate key as a primary key from this set?

  • @Philip1306
    @Philip1306 5 ปีที่แล้ว

    What if I choose DEH? as DE is a candidate key it will also be. Right?

  • @R5417
    @R5417 4 ปีที่แล้ว

    In the same question how can I check their normalisation form?

  • @himanshu.0415
    @himanshu.0415 5 ปีที่แล้ว

    in case all the abcdef are present somehow in right side than ? from where to start?

  • @hericklenin
    @hericklenin 5 ปีที่แล้ว

    What about ABCDEFGH? Is that a candidate key? Are you counting only the minimal candidate keys?

  • @Afsertanveer
    @Afsertanveer 9 ปีที่แล้ว

    how it can be 4 candidate keys only where we can also have dab dac dae daf dag and many other as candidate key!! logically dac dae dab etc are also subset of the relation attributes!! isnt it?

  • @divyanshbahuguna6324
    @divyanshbahuguna6324 8 ปีที่แล้ว

    Dear sir ,
    If suppose in place of D , D and E remain independent , will the procedure be same???

    • @Edredo
      @Edredo  8 ปีที่แล้ว

      +Divyansh Bahuguna
      Kindly ask any doubt on techtud.com
      As the video author will be notified by email and chances of getting quich answer is very high.

  • @satyamsareen3912
    @satyamsareen3912 7 ปีที่แล้ว

    Sir if on the right hand side all the attributes are present so how we will find the candidate keys

  • @nishunishank5800
    @nishunishank5800 7 ปีที่แล้ว

    Good explanation sir

  • @sankhanilnayek9345
    @sankhanilnayek9345 4 ปีที่แล้ว

    I thought that subsets of candidate keys cannot be candidate keys themselves. How does this work?

  • @ericmcevoy9122
    @ericmcevoy9122 8 ปีที่แล้ว

    Hey great videos!
    Is there any particular reason you are underlining letters as you go through the closure sets?
    Thanks!

  • @souvikmondal2402
    @souvikmondal2402 7 ปีที่แล้ว

    in case of [DCH], DC is coming which is already a candidate key.. so we can determine all other terms. then how come DCH is not a candidate key?

    • @mann4088
      @mann4088 7 ปีที่แล้ว +1

      DC is not a candidate key