Lec 7: How to Find Number of Candidate Keys in a Relation - part 1 | DBMS Tutorials

Sdílet
Vložit
  • čas přidán 27. 11. 2019
  • In this lecture, I have discussed a Simple Trick to Find Out all Candidate Keys in a Relation.
    Best DBMS Tutorials : • DBMS (Database Managem...
    *******************************************
    Connect & Contact Me:
    My Second Channel Link: bit.ly/354n7C7
    Facebook: / jennys-lectures-csit-n...
    Quora: www.quora.com/profile/Jayanti...
    Instagram: / jayantikhatrilamba
    Twitter: / khatrijenny
    *********************************************
    More Playlists:
    C Programming Tutorials: • Programming in C
    C++ Programming Tutorials: • Lec 1: How to Install ...
    Placement Series: • Placements Series
    Data Structures and Algorithms: https: • Data Structures and Al...
    Design and Analysis of Algorithms(DAA): • Design and Analysis of...
    Python Full Course: • Python - Basic to Advance
    Printing Pattern in C: • Printing Pattern Progr...
    Dynamic Programming: • Dynamic Programming
    Operating Systems: // • Operating Systems
    #dbms #dbmstutorials #normalization #jennyslectures #losslessjoin
    #howtofindcandidatekeyinarelation
    #candidatekey
    #DBMS
    #ugcnetcomputerscience
    #jennylectures

Komentáře • 453

  • @samsons8279
    @samsons8279 Před rokem +132

    Answer for exercise at 18:31
    Number of candidate keys = 4
    Set of candidate keys = { AB, CB , AD , CD }
    Prime attributes = { A, B, C, D }
    Thanks a lot ma'am !! 🤩🎊
    This is one of the epic channels to learn DBMS !! Hats off !! 🙌

    • @carishmakhan4694
      @carishmakhan4694 Před rokem +3

      can you explain it?

    • @dsadsa5447
      @dsadsa5447 Před rokem +12

      @@carishmakhan4694 r(a,b,c,d)
      ab->cd , d->b,c->a (prime attribute a,b,c,d)(if prime attribute is on the left arrow side, u can replace it with a new attribute)
      ck?
      abcd=(abcd)
      abd=(abcd)
      ab=(abcd) ->ck
      (c->a so cb is sk but not sure bout ck)
      cb=(abcd)-> ck
      (d->b so ad is sk but not sure bout ck)
      ad=(abcd) -> ck
      (ab->cd so cd is sk but not sure bout ck)
      cd=(abcd)-> ck

    • @manytuch
      @manytuch Před rokem +5

      @@dsadsa5447
      How does ad->c?
      what I know is that you can only determine c using ab by applying decomposition rule. a alone can not determine c.

    • @rishabhsharma3022
      @rishabhsharma3022 Před rokem +3

      @@manytuch i think, AD->B after that we can use AB->CD to get C

    • @manytuch
      @manytuch Před rokem

      @@rishabhsharma3022
      Sure, I figured that out after watching the next video. Thanks

  • @SkyJunkie1000
    @SkyJunkie1000 Před 3 lety +30

    These lectures have been filling in all the information that is missing in the text books. Thank you so much!

  • @jubinsoni4694
    @jubinsoni4694 Před 4 lety +30

    Thank you jenny for such awesome videos...The thing that separate u from rest of the teachers is that you explain every concept with an example...and I'm a person who looks to knowledge for acquiring skill and making something from that skill rather than to just pass exams ....Thank's a lot for making such informative videos

  • @raheemasghar2383
    @raheemasghar2383 Před rokem +5

    Absolutely Brilliant. There is no doubt you are the best instructor on CZcams. I have checked out quite a few videos but none have been able to explain this core concept as clearly as you have.

  • @unnayan_sharma
    @unnayan_sharma Před 4 lety +7

    Thank you mam , you are such an inspiration for all of us who are preparing for GATE

  • @theuniverse9928
    @theuniverse9928 Před 3 lety +11

    If this type of teacher will be available in India then all peoples will not have to learn like copy from book or Google then paste in exam nd also never forget any topics.... 😊 Thank you ma'm...

  • @parikhmansi90
    @parikhmansi90 Před 3 měsíci +1

    After watching several videos, not getting clear such concepts, but you make it so simple to understand. thank you so much.

  • @titusjapan7572
    @titusjapan7572 Před 3 lety +3

    AM TITUS from Ghana i have been watching your videos on data structure which is really helpful to me .God bless you .Thank you.

  • @jhumabiswas2163
    @jhumabiswas2163 Před 3 lety

    Really Your Technique of Teaching is Awesome.Your Viodeos are Really Helpful and understandable. Thank you Mam. You Make My Understanding About Candidate Key.

  • @muhammadshahzaib2073
    @muhammadshahzaib2073 Před 4 lety +10

    i dont know why u didnt start this series three month ago, coz i really wanted it in my last semester. I m from pakistan and i always watch your videos to clear concepts because u r much better than my lecturer ...... ->Brilliant teacher

  • @clebsonmachado9692
    @clebsonmachado9692 Před 5 měsíci

    The best course for competitive examination in Brazil cannot pass a subject at its level. Congratulations.

  • @thomaszhou5042
    @thomaszhou5042 Před 4 lety

    The explanation is very clear and easy to understand. Thanks.

  • @dipayanjana6124
    @dipayanjana6124 Před 2 lety +1

    you are a lifesaver, thanks for making such wonderful videos,

  • @isaacchuah7543
    @isaacchuah7543 Před 3 lety +2

    Thanks for your technique on finding the candidate keys. It's very very reliable compared to what I was taught in class.

  • @anupam4446
    @anupam4446 Před 3 lety +5

    somebody award this playlist!

  • @Sok_Masterly
    @Sok_Masterly Před 7 měsíci

    You are the teacher. I can understand very clearly of finding candidate key😻. Before I really confused of it.😭 Thank u so much my lovely teacher. ❤

  • @791_kunalchakraborty8
    @791_kunalchakraborty8 Před 4 lety +1

    maam u are great , i like ur all videos,ur lactures help me a lot. thanku a lot

  • @anjalianju7854
    @anjalianju7854 Před 2 lety

    Thank you very much mam, after watching so many videos, this found to be very informative

  • @aman_singh.student
    @aman_singh.student Před 2 lety

    Thank You Very Much for such excellent series on DBMS course.
    Thanks Mam

  • @036_asthasingh4
    @036_asthasingh4 Před 3 lety

    Thank you MA'AM for such awesome video 🙌

  • @rajninegi903
    @rajninegi903 Před 4 lety +1

    Thanku so much ma’am for these lectures 🙂

  • @suvankar54
    @suvankar54 Před 2 lety +20

    How we got CD as candidate key:
    we are given that C-> A and D->B, now by the help of Composition rule CD -> AB, thus AB is replaced with CD.
    ** Composition Rule of Armstrong's Axioms.

    • @supriyosaha7450
      @supriyosaha7450 Před 2 lety +2

      D->B does not stands a valid FD for the given Schema. However, BD->B stands valid[by IR1 Reflexivity property]. Your opinion would be correct iff and only if we were pre-provided with the FD D->B. However, this is not the case.

  • @shivateja7574
    @shivateja7574 Před 3 lety +9

    Your videos helped me in cracking GATE. Thank You so much mam.

  • @videosforfun2602
    @videosforfun2602 Před 4 měsíci

    All the lecture in English Just The word "Ayaa Button" :)
    Very informational videos ever i seen :)

  • @parth61
    @parth61 Před rokem

    Amazing ma'am ☺️...i understand all the things... thank you so much ma'am ☺️🥳

  • @Ruby..R
    @Ruby..R Před 2 lety

    Really really such a wonderful video ma'am. Thanks a lot

  • @millionplusviews8013
    @millionplusviews8013 Před 2 lety +1

    Super Explanation... Very Very Thankx Maam...👌👌

  • @zuhairbilal2222
    @zuhairbilal2222 Před 3 lety +11

    Answer for last question to cross check!!
    got AB,CB,CD,AD.

  • @MunoBhaiSialkoti
    @MunoBhaiSialkoti Před 3 měsíci

    Your teaching method is best and easy to understand you are really a genius. ❤❤❤

  • @dinushachathuranga7657
    @dinushachathuranga7657 Před 9 měsíci

    Bunch of thanks for the clear explanation🧡🧡

  • @floydmartyres9157
    @floydmartyres9157 Před rokem

    simply amazing. better than my professor.

  • @eagle_shadow6665
    @eagle_shadow6665 Před 2 lety +3

    Thank you so much mam really superb video 💫👌

  • @isaicsefxec6721
    @isaicsefxec6721 Před 3 lety +6

    Its remember my maths teacher. U give tough portion as assignment 😁

  • @supriyosaha7450
    @supriyosaha7450 Před 2 lety +4

    😍 Mam, I got Ck{ AB, CD, AB, CB } as the Candidate keys

  • @jaishreeramjaanki
    @jaishreeramjaanki Před 2 lety +1

    After watching this video first time,
    "Kitni awesome hain yaar.. "
    🥰🥰🥰🥰🥰

  • @arpit1718
    @arpit1718 Před 4 lety

    Nice video mam always give proper solutions

  • @user-my7tv1bw6i
    @user-my7tv1bw6i Před 8 měsíci

    Lots of thanks for this awesome explanation😊

  • @knowledge_withkanha
    @knowledge_withkanha Před 4 měsíci +1

    I can't explain my word.. To say thank you.. But Thank you so much mem for your efforts to the students... 🙏💝❤

  • @sobhityadav5753
    @sobhityadav5753 Před 2 lety

    your way of explanation is too good...MAM

  • @user13rs258
    @user13rs258 Před 2 lety +1

    thank you mam, clear concept :)

  • @lahoriji5828
    @lahoriji5828 Před 4 lety

    love u so much mam, carry on ........

  • @swarnalibhattacharjee3659

    Mam could you please upload some videos related with database query . It will also be really helpful.

  • @divyajeetsingh3367
    @divyajeetsingh3367 Před 4 lety

    Mam great explanation ☺️

  • @saranyatv9027
    @saranyatv9027 Před 3 lety

    Good one👌👌👌👌👌

  • @sarikagehlot2480
    @sarikagehlot2480 Před 2 lety

    U r best teacher thank u mam🙏

  • @krishnapandurangmate963

    Nice explanation👍

  • @programmingstuff9216
    @programmingstuff9216 Před 2 lety

    Thank you very much ma'am . you are very kind . Thank you :)

  • @gauravtewatia6745
    @gauravtewatia6745 Před 3 lety

    Well explained.......

  • @asfandyarahmad8286
    @asfandyarahmad8286 Před 4 lety

    Thanks mam
    Allah ape ko buhat kamyabi day

  • @RanjeetCAPF
    @RanjeetCAPF Před 4 lety +1

    Thanku maam 😘

  • @rohanjamakhandi5461
    @rohanjamakhandi5461 Před 8 měsíci

    Very helpful, thank you very much

  • @naeemabbass8183
    @naeemabbass8183 Před 4 lety

    thanks for uploading candidate key .............

  • @Dileepkumar0101
    @Dileepkumar0101 Před 3 měsíci

    My question is solved after watching this video 😊

  • @devrajpatil4496
    @devrajpatil4496 Před 2 lety

    Thanks for this mam !!

  • @xyzui
    @xyzui Před rokem +1

    Hi jenny, can you please make a short video explaining the answer of the last question for us? I just wanted to confirm the procedure. Thanks

  • @suryadev9739
    @suryadev9739 Před 4 lety

    Jenny Mam....Really u r awesome to explain complex concept in understandable way....Really thanks to u.....

  • @cs-rohitsahu4943
    @cs-rohitsahu4943 Před 2 lety +1

    Thank you ma'am 😊

  • @001aariffarooqbhat7
    @001aariffarooqbhat7 Před rokem

    Got it ma'am AB,CB,CD,AD
    PA-A,B,C,D

  • @abhinavsoni6180
    @abhinavsoni6180 Před 4 lety +1

    My favourite lectures and my favourite madam 😘😘 love you mam you are so beautiful but you didn't smile please smile mam 😅😅😅😝😬 👍👍👍

  • @satyadharkumarchintagunta3793

    Thank You Soo much mam

  • @KrupalusPersonal
    @KrupalusPersonal Před 7 měsíci +2

    Normalise watching Jenny ma'am's lectures in 1.5x 😅

  • @paulphyo
    @paulphyo Před 2 lety

    wtf this person is awesome thank u :)

  • @fathimathsameera9593
    @fathimathsameera9593 Před 3 lety +3

    Hi ...myself mtech graduate ,,, your classes are amazing

  • @arjay1699
    @arjay1699 Před 3 lety

    Are the given FDs already a canonical cover (Fc)? Is finding the canonical cover a prerequisite to finding all candidate keys? Thanks Mam Jenny. Your lectures are great!

  • @kipyegoian7700
    @kipyegoian7700 Před rokem +3

    Candidate Keys are :AB,CD,AD,CD Prime Attributes are : A,B,C,D

  • @vishalvaishnav8846
    @vishalvaishnav8846 Před 2 lety

    very helpfully video thank you mam

  • @donjr3270
    @donjr3270 Před 3 lety

    Hi Jenny, what if I have FD as well as MVD? Do we only use FD to find out candidate key?

  • @okoloanderson5714
    @okoloanderson5714 Před 2 lety

    You are a darling... Thank you so much!

  • @lakshaygupta6180
    @lakshaygupta6180 Před 4 lety +12

    4 candidate keys possible- AB, CB, CD, AD

    • @alfa8728
      @alfa8728 Před 2 lety

      I think you're wrong there.

    • @mdomarfaruq3160
      @mdomarfaruq3160 Před 2 lety +1

      How can you find 'AD' please explain, I didn't understand this

  • @namratapatil5181
    @namratapatil5181 Před 3 lety +73

    Prime attributes - A,B,C,D
    Ck - AB,AD,CB,CD

  • @RitikKumar-km5io
    @RitikKumar-km5io Před 6 měsíci

    Thank You Mam❤!

  • @muvedinisukumaran1242
    @muvedinisukumaran1242 Před 4 lety +1

    Hi mam.. as a kind request... Pls make some videos on python programming language....

  • @shyamprakashm6325
    @shyamprakashm6325 Před 4 lety

    😍😎 HARD WORK NEVER FAIL

  • @shafiqahmad9057
    @shafiqahmad9057 Před 4 lety +1

    Please numbered each video with1 2 and 3 in play list it will become more organise .

  • @mahnooriqbal7616
    @mahnooriqbal7616 Před rokem

    you have taught very well but it is very complex

  • @sathyaprakash284
    @sathyaprakash284 Před 4 lety

    Excellent mam

  • @soobinkim9460
    @soobinkim9460 Před 4 lety +180

    I got AB, AD, CB, CD as candidate keys.

    • @piyushgoel8165
      @piyushgoel8165 Před 3 lety +2

      I got the same.

    • @cassj7
      @cassj7 Před 3 lety +6

      Yeah, I got these too.

    • @summaiyafatima3368
      @summaiyafatima3368 Před 3 lety +2

      I got these same

    • @bense_tony
      @bense_tony Před 3 lety +142

      Explanation [Kindly correct If I'm wrong] @18:24
      Ans. 4 - AB, CB, CD, AD
      1. [ABCD]+ = {A,B,C,D} -> Super Key. But not candidate Key
      Using, C->A, D->B, We simplify 1 as [ABAB]+ which is nothing but [AB]+
      Now, [AB]+ = {A,B,C,D} -> Super key.
      To check if [AB] is a candidate key,
      [A]+ = {A}, [B]+ = {B} which are not super keys. So, AB is a CK
      Also, Prime Attributes are {A,B} which is on the RHS of C->A and D->B.
      So, the next possible super keys which we have to check as candidate keys are
      Replace A with C, B with D and also AB with CD . Results are CB,CD,AD
      [CB]+ -> super key. [C]+ = {C,A}. [B]+ = {B} which are not super keys => CB is a candidate key.
      [CD]+ -> super key. [C]+ = {C,A}. [D]+ = {D,B} which are not super keys => CD is a candidate key.
      [AD]+ -> super key. [A]+ = {A}. [D]+ = {D,B} which are not super keys => AD is a candidate key.

    • @yashwanth687
      @yashwanth687 Před 3 lety +4

      @@bense_tony nice work

  • @emran8294
    @emran8294 Před 2 lety +1

    Thank a lot . 4 candidate key . ck = {AB,ADBC,CD}

  • @coralexbadea
    @coralexbadea Před 4 lety +3

    Much love from UTCN

  • @sukidharani5125
    @sukidharani5125 Před 4 lety +9

    3 candidate keys are present in my point of view

  • @iimranchowdhury9506
    @iimranchowdhury9506 Před 4 lety +1

    tnk u..

  • @vaishaliwadhwa8742
    @vaishaliwadhwa8742 Před 11 měsíci

    Very nice

  • @flamelsphoenix145
    @flamelsphoenix145 Před 4 lety +3

    Please add english subtitle so that we(people who not having a very good listening skill) can understand you completely , thanks for well explained video though.

    • @SanjeevKumar-yt7sn
      @SanjeevKumar-yt7sn Před 4 lety +1

      She's trying to teach in english,not her native language.so cooperate u moron.Instead of doing sarcasm....

    • @Thedemonmaster24
      @Thedemonmaster24 Před 4 lety +6

      @@SanjeevKumar-yt7sn I don't think it is sarcasm, if you are not used to one type of accent it can be difficult to understand sometimes. Anyway, awesome lectures

  • @oshadhaedirisinghe1455
    @oshadhaedirisinghe1455 Před 6 měsíci

    Thank you

  • @simpleseesaw2551
    @simpleseesaw2551 Před 4 lety

    Miss please do all videos in English because as ure thinking the whole world should benefit from your videos. For example u had done diwali video in hindi. I couldn't understand dear mam

  • @viplovekadre9371
    @viplovekadre9371 Před 4 lety +6

    3 candidate keys AB,CD and AD all are prime attributes

    • @alphonseprakash7459
      @alphonseprakash7459 Před 4 lety +2

      BC will also be a candidate key

    • @viplovekadre9371
      @viplovekadre9371 Před 4 lety +2

      @@alphonseprakash7459 what BC can determine bro is it giving the whole relation then definitely it is if not it is not

    • @nimisharajesh8846
      @nimisharajesh8846 Před 4 lety +3

      BC also will give whole relation

    • @labrederlifestyle6819
      @labrederlifestyle6819 Před 3 lety

      @@viplovekadre9371 yes bro find CB closure u get CD and C->A and B->D hence CB-> CDAB which contains all keys

  • @rockjohn4862
    @rockjohn4862 Před 4 lety

    Mam its really very useful . But I have a one doubt there is little bit difference between ur method and my class mams method by this can I get full mark mam.😘

  • @continnum_radhe-radhe
    @continnum_radhe-radhe Před 8 měsíci +1

    ❤❤❤

  • @amirthasankar6996
    @amirthasankar6996 Před rokem +1

    Super

  • @samiahmad5272
    @samiahmad5272 Před rokem

    for R(A,B,C,D,E) {A,B,C,D,E} will only be a SuperKey IF the table does not have duplicate rows right?
    so for such a table how do you go about determining the maximal SK ?

  • @abhirashmikumari8097
    @abhirashmikumari8097 Před 3 lety

    AV ,CB,DA,DC are the candidate keys :)

  • @zeelchauhan4401
    @zeelchauhan4401 Před 3 lety +7

    CANDIDATE KEY : AB,AD,BC,CD
    PRIME ATTRIBUTE : A,B,C,D

    • @manishpritmani
      @manishpritmani Před 3 lety +1

      How can AD be candidate key plz explain

    • @premjith8361
      @premjith8361 Před 3 lety

      @@manishpritmani same doubt

    • @anujbhushanmahto8308
      @anujbhushanmahto8308 Před 2 lety

      @@manishpritmani proper subset of AD are A and D ,whose closure are not superkey ,therefore it is candidate key.

  • @NikhilYadav-us3mo
    @NikhilYadav-us3mo Před rokem

  • @venkatnarasimha1727
    @venkatnarasimha1727 Před 4 lety +1

    Mam, Please do the videos on BackTracking, GreedyAlogrithms, Dynamic Programming Hash Table.
    Thanks in Advance mam.

    • @JennyslecturesCSIT
      @JennyslecturesCSIT  Před 4 lety +3

      Already uploaded on dynamic programming and hashing..u can chk out the playlists.

    • @venkatnarasimha1727
      @venkatnarasimha1727 Před 4 lety +1

      @@JennyslecturesCSIT OK mam tq and then plz upload backtracking and greedy algorithms mam
      Thanks in advance mam

  • @siddiquiadnan92
    @siddiquiadnan92 Před 4 lety

    Thnx

  • @user-il8hj7qh2h
    @user-il8hj7qh2h Před 3 lety

    ❣️

  • @alina_123
    @alina_123 Před 7 měsíci +2

    Mam,can u pls post the solution video for the last question as I have some doubts

    • @YourFather-lr3rz
      @YourFather-lr3rz Před 3 měsíci

      Yes, the last question is harder than the solved questions😂😂

  • @suchitranair683
    @suchitranair683 Před 2 lety

    @mam, i have sat the entire day for the last hw question you gave, I got only AB and CD as candidate keys, But i am not able to understand how is CB and AD superkeys?

  • @harshadlokare
    @harshadlokare Před 4 lety +46

    stop reading comments and focus on study........

    • @tejaswigopaladasu7372
      @tejaswigopaladasu7372 Před 4 lety +4

      hello bro....ans for questions asked by her will be seen in comment section .so that many will see comment section for that purpose.

    • @harshadlokare
      @harshadlokare Před 4 lety +1

      @@tejaswigopaladasu7372 ok ok...

    • @namansrivastava9495
      @namansrivastava9495 Před 3 lety +1

      @@harshadlokare terer jaise hi jobless hote hein

    • @nikhilramisetty532
      @nikhilramisetty532 Před 3 lety +1

      @harshad lokare Stop commenting and focus xD...

  • @user-xl2es1mz6m
    @user-xl2es1mz6m Před 8 měsíci

    Thanks mam