Lec 8: Finding number of candidate keys in relation - part 2 | DBMS

Поділитися
Вставка
  • Опубліковано 9 лют 2025
  • In this lecture I have explained how to find Number of Candidate Keys in a Relation with a simple trick.
    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/...
    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

КОМЕНТАРІ • 214

  • @senpaijs798
    @senpaijs798 4 роки тому +226

    Indian UA-camrs are going to revolutionize education! Thanks it was much better than at university!

  • @alejandronieto576
    @alejandronieto576 3 місяці тому +10

    Thanks from Buenos Aires!
    A little cheat note I made from this video:
    Candidate Key Discovery Algorithm
    1. you have *trivial superkey* > do *functional dependency filtering (filter the trivial SK by removing the attributes which are dependents in FDs; use also the 3 AAs + 3 IRs)
    2. you have *filtered super key* > do *subset check (if closure of all proper subsets don't cover all attributes, then it's a candidate key)
    3. you have *candidate key* > do *dependent prime attribute replacement (generate new SKs by replacing each attribute which is a dependent in any FD, by its corresponding determinant)
    4. Repeat 2. and 3. until all FDs have been exhausted and you have *all possible candidate keys and prime attributes*
    older version:
    Once you have a super key > do a subset check (closure of proper subsets must still cover all attributes)
    Once you have a candidate key > do a prime attribute dependency check (generate new SKs by replacing dependencies by determinants)

    • @zuh2760
      @zuh2760 3 місяці тому +1

      Nice, I got this same note from Gate Smashers

  • @bhavana282
    @bhavana282 Рік тому +11

    You are the life savier of many students.....Im not able to notice atleast one lecture of yours as boring....YEAH ...Your teaching skills are....awesome.Every lecture of yours are WORTH watching.

  • @Salehalanazi-7
    @Salehalanazi-7 5 років тому +56

    Ever since i was forced to leave college I thought I would never improve in data structures and algorithms and other CS topics. Online resources are old and books are hard to read. Then I saw your channel!. Thank you so much Jenny. You're really an amazing teacher

  • @shivalikagupta3433
    @shivalikagupta3433 4 роки тому +9

    I was actually following BDE and thought to comment, after explaining you expained that ....very thoughtful indeed

  • @jawadrajput2220
    @jawadrajput2220 2 роки тому +6

    OMG!!!! It's how she explains. Wonderful Job Ma'am (undoubtedly you are the best explainer on the UA-cam) Thankyou So very much.

  • @adounakebe2546
    @adounakebe2546 Місяць тому +1

    we just need to have logical reasoning and you give this. thanks from senegal !!

  • @knowledge_withkanha
    @knowledge_withkanha 10 місяців тому +2

    Vary easily or not complex method. And these examples all concept is clear... So thank you so much Jenny mem... 🙏❤🙏

  • @modelworkzseo
    @modelworkzseo 4 роки тому +11

    The perfect summary of the process at: 19:29

  • @sugamamaglory4226
    @sugamamaglory4226 Рік тому

    thank you!!! i fully understood this and finally get why this works. I hope you are doing so well with your life because bless you.

  • @rishabdutt2600
    @rishabdutt2600 5 років тому

    mam to be honest..the guyz who would never thought to study hard ..can make it wrong, while seeing your lactures..you makes the things soo easy..keep it up, ya with your adorable smile ..😍😊

  • @josephaidoo4429
    @josephaidoo4429 3 роки тому

    Am in Ghana and I swear the way this lady teaches is excellent

  • @Jitendrakumar-gb7cn
    @Jitendrakumar-gb7cn 3 роки тому +2

    Ma'am your example is really awesome , every example teaches us something new even if knowing all primarily concepts

  • @jatinukey4062
    @jatinukey4062 5 місяців тому

    Didn't thought that jenny mam has dbms lecture's videos also. I have wasted my 1 hr on other yt videos, but thank god jenny mam saved me!😍

  • @MarathonMombie
    @MarathonMombie 3 роки тому +2

    I'm curious who gave her a thumbs down. She's amazing!

  • @kazimd.al-wakil702
    @kazimd.al-wakil702 3 роки тому +3

    Thanks for existing and making these amazing videos. SO HELPFUL!

  • @rajarshibasu6436
    @rajarshibasu6436 4 роки тому +2

    Hi, Thanks for sharing the answer to the problem in the previous video. Really liking these lectures!

  • @dipingrover1970
    @dipingrover1970 6 місяців тому

    Amazing content watched multiple videos but didn't get that
    Thanks a lot ❤

  • @mayanddangi9758
    @mayanddangi9758 5 років тому +3

    Ma'am
    Your's lecture are too good.
    It helps me lot...
    keep uploading such lecture so that your student can always have a guidance to learn......

  • @eagle_shadow6665
    @eagle_shadow6665 2 роки тому +2

    Thanks for this superb video 😌

  • @bl4z3_kanazaki
    @bl4z3_kanazaki 2 роки тому

    So thank you for this miss! I gonna take a DBMS test in the next 6 days, hope I can pass it with high score!

  • @yashtambat560
    @yashtambat560 2 роки тому +1

    now i have solved easily , without any problems, specials thanks to jenny maams , she give us easy and nice explaination than my college teachers...

    • @mangekyo_o
      @mangekyo_o 2 роки тому

      galat hai bhai correct to karle

    • @yashtambat560
      @yashtambat560 2 роки тому

      @@mangekyo_o kya galat he ?

  • @nikhiltyagi6071
    @nikhiltyagi6071 2 місяці тому

    Thank you mam for your support and guidance today my result is declared and I pass the exam of dsa .❤❤❤

  • @NassosKranidiotis
    @NassosKranidiotis 3 роки тому +1

    Thank you very much for the lecture! It saved my day.

  • @Mk-lh3vj
    @Mk-lh3vj 5 років тому +1

    I love your teaching mam from Tamilnadu

  • @dinushachathuranga7657
    @dinushachathuranga7657 Рік тому

    Perfect explanation, Thanks ma'm❤❤

  • @sarakhurshid5586
    @sarakhurshid5586 3 роки тому +1

    JazakALLAH to save me. I am lecturer and due to you I can explain this topic easily. May ALLAH bless you ameen

  • @MonkeyD.3892
    @MonkeyD.3892 Рік тому

    Thanks Mam for amazing lecture. It cleared all the concepts

  • @tecboost8176
    @tecboost8176 Рік тому +1

    Please Continue DBMS Series

  • @gopalverma6368
    @gopalverma6368 4 роки тому

    Great explanation...aap ke padhane me baat h..👌

  • @elucidate9277
    @elucidate9277 4 роки тому +1

    top notch lecture ma'am

  • @World-Of-Mr-Motivater
    @World-Of-Mr-Motivater 7 місяців тому

    jenny is our gem

  • @Lokesh_yadav__
    @Lokesh_yadav__ 2 роки тому

    Awesome 💥💥💥
    Thanku so much for this awesome lecture 🙏🙏🙏🙏🙏

  • @abidalichaudhary6419
    @abidalichaudhary6419 4 роки тому

    Thanks ma'm soo much for this valuable video...
    Your teaching method is realy attractive for me

  • @AbhishekSharmaDit
    @AbhishekSharmaDit 5 років тому +1

    Congratulations 🎉🎉 mam for 50k subscribers 🤩😊🔥

  • @md.badrulhussain8539
    @md.badrulhussain8539 5 років тому +12

    I don't understand while C is a candidate key which is minimal so how come two attributes AD becomes candidate key?

  • @sriramamara5100
    @sriramamara5100 5 років тому +2

    Madam,,, i love your teaching and .... Very excellent explanation
    Your eyes are magnets attracting my concentration... . Maam love You 💓
    As your student!

  • @DevNarayanKarwa
    @DevNarayanKarwa Рік тому

    Thank You So Much for the Detail Explanation.!!!

  • @abhishekkumarjha989
    @abhishekkumarjha989 5 років тому

    I want to thank you..
    The way you teach hope i could be your student..
    I improved myself through your lectures..
    You are beautiful though in love❣️

  • @isaitech4602
    @isaitech4602 4 роки тому

    I thought your videos are Short content only for formal education . But, After ref some gate questions . Now , I conculde you videos are more enough for gate exam too

  • @kpjiroli
    @kpjiroli 5 років тому +1

    nice video & nice teaching

  • @yashnigam7431
    @yashnigam7431 5 років тому +4

    Ma'am I see your videos from past 4 months , they are very much based on clear concepts and complete knowledge..but ma'am since you cracked gate I want to know that from where should I start my preparation of gate...??? Waiting... for your guidance.... ma'am

  • @healthyshorts8601
    @healthyshorts8601 2 роки тому

    Thanks Mam. I passed my Exams!

  • @souptikdas8196
    @souptikdas8196 5 років тому +1

    I read in class X and I always get to learn new programming logic and new things .... Thank u maam . And I am from Kolkata thank u from Souptik Das

  • @rajorshibhattacharya1542
    @rajorshibhattacharya1542 2 роки тому

    Thank you so much, ma'am...
    Deep respect to you...

  • @FIREPIXEL_FF
    @FIREPIXEL_FF 2 роки тому

    Great teaching

  • @onestopbydivy
    @onestopbydivy 2 роки тому

    Thank you such helpful in exam👍

  • @dhananjaysingh5677
    @dhananjaysingh5677 3 роки тому

    thank you mam for your unconditional efforts

  • @roysa2z299
    @roysa2z299 6 місяців тому

    you saved us

  • @MonkeyD.3892
    @MonkeyD.3892 Рік тому

    Thank You for this lecture mam

  • @vinayteeda7943
    @vinayteeda7943 4 роки тому

    Good examples and thank you for your effort in preparing the videos

  • @priyankapaul7077
    @priyankapaul7077 2 роки тому

    Very easily i can understand

  • @RitikKumar-km5io
    @RitikKumar-km5io Рік тому

    Thank You Mam❤!

  • @shivanirana7444
    @shivanirana7444 4 роки тому

    Easily explained.
    Thankyou 🙂!

  • @Revathy84
    @Revathy84 7 місяців тому

    Thank you so much

  • @prithvichetty15
    @prithvichetty15 5 років тому +1

    Great teaching 😍

  • @sourabhbeats6958
    @sourabhbeats6958 4 роки тому

    Exellent teaching skills mam, i learned these method😊

  • @lokeshborole8997
    @lokeshborole8997 2 роки тому

    Thank u mam for the amazing lecture

  • @masterflory8841
    @masterflory8841 9 місяців тому +1

    Thank you very much for your video. At 11:30, I dont understand why C is CK, coz proper subset of C is C itself, which is both SK and its subset is SK, so how can we conclude that C is candidate key?

    • @krishsachdeva1105
      @krishsachdeva1105 9 місяців тому +1

      No proper subset of C csnt be C itself

    • @masterflory8841
      @masterflory8841 9 місяців тому

      @@krishsachdeva1105 thank you very much for your reply. I figured out on your other video about the keys. I passed the Sql class thanks to your precise courses. Cant be grateful enough for your meaningful work. Keep it up! 👍🏻 huge fan from now on. 💪💪💪

    • @sri12913
      @sri12913 Місяць тому

      If we found that C is the candidate key which is also minimal ...then why are we taking AB as candidate key also??

  • @senpaijs798
    @senpaijs798 4 роки тому +1

    At university 30 students in a class of 50 did not understand this yet paid 3000 dollars,But here over 25k people understood it yet didnot pay a penny!

  • @mohsinimam2048
    @mohsinimam2048 2 роки тому

    Thanks mam!

  • @kadambalapavan2280
    @kadambalapavan2280 4 роки тому +1

    Jenny mam ,
    R(A,B,C,D,E)
    FD: A->BC,CD->E,B->D,E->A
    For this and relation,
    E,A,CD,BD are candidate keys check once tell me..

    • @mmrtech5495
      @mmrtech5495 3 роки тому +2

      today i solved your question and my candidate keys are E, CD, AD, AB and prime attributes A, E, C, D. I think your candidate keys are wrong try once again.

  • @AbdullaNabeel-r5n
    @AbdullaNabeel-r5n 3 місяці тому

    Tip: Before solving, decompose the RHS of the F, it will shorten the shortcut!

  • @muhammadhamzabutt7172
    @muhammadhamzabutt7172 5 років тому

    Ma'am ! Your videos is good . You explain well.
    I request you that you should make a video on this topics that, we Prefer to use Normalize Data in Our Database System,
    But why we need Denormalize data instead of Normalize Data in our Data Warehouse ???
    Please Reply??

  • @muhammadyounis7321
    @muhammadyounis7321 4 роки тому

    Thanks....

  • @shahbazgill2306
    @shahbazgill2306 11 місяців тому

    very nice

  • @prasanthneelam8255
    @prasanthneelam8255 4 роки тому +2

    F: a-b,b-d Actually AcD is a candidate key then proper sub is ac ab CD a c d at replacing acd to acb if ac is super key then it can take it as ck. B is prime att or non- prime tell me please.

  • @ഇല്ലുമണവാട്ടി

    Vere level 🥰

  • @akhilnamburi7083
    @akhilnamburi7083 4 роки тому

    Mam at 8:08 we have c->b so we can discard b from ab

  • @velumaniramasamy4587
    @velumaniramasamy4587 4 роки тому

    Thank you madam

  • @nawazshareef2228
    @nawazshareef2228 2 роки тому +1

    Mam, it would be helpful if you can give some idea about the usage of candidate keys in practice.

  • @Watcher46
    @Watcher46 7 місяців тому

    I think all the youtubers can start an online university for a much better price. Like Abdul sir teaches DSA, jenny mam dbms...it will be good I guess

  • @tanzirratul9623
    @tanzirratul9623 3 роки тому

    Consider the relation scheme R(A, B, C, D, E, H) and the set of functional dependencies- A → B,BC → D,E → C,D → A Find the Candidate key.

    • @Starcsh6305
      @Starcsh6305 2 роки тому

      AEH,DEH,BEH is it correct brudha🙂

  • @madhukumarv8564
    @madhukumarv8564 3 роки тому

    Plz upload a video on finding total no of super keys for this problem!!

  • @shashikant3746
    @shashikant3746 5 років тому

    Mam....please make video on data structure for campus interview or interview preparation. In whole youtube video i can't find any better video for interview preparation. So please make video, student gets benefit for job

  • @mainakdeb2780
    @mainakdeb2780 5 років тому +1

    Hi Mam ... It would be a great help for students if you solve 1 or 2 gate or net questions for each imp topics ... 😁😁😁

  • @Raj3486
    @Raj3486 4 роки тому +1

    Mam at 9:28 you changed DC to DB... Please check and correct me if I am wrong

  • @sanjoydey3593
    @sanjoydey3593 4 роки тому

    Good

  • @vkstudy3764
    @vkstudy3764 2 роки тому +3

    isnt candidate key the minimal super key shouldnt the answer be only C

  • @sagrikasoni7685
    @sagrikasoni7685 2 роки тому

    Mam plzzz continue the DBMS series

  • @dropme7778
    @dropme7778 5 років тому +1

    Can you do a tutorial about query optimization cost with examples ?
    I will be thankful if you do it because my exam is around the corner 🙏

  • @guystown5109
    @guystown5109 5 років тому +1

    Mam please teach the stack overflows and underflow conditions with example

  • @mtalhakhalid1679
    @mtalhakhalid1679 5 років тому +1

    Nice haircut looking so cute in that😍😍

  • @abby9192
    @abby9192 4 роки тому

    Please make more videos on DBMS

  • @vaibhavjaviya6100
    @vaibhavjaviya6100 4 роки тому +2

    government should start UA-cam teachers award and must give it to you

  • @ziyaabbas6437
    @ziyaabbas6437 5 років тому

    Thanks 🙏🙇🙏🙇🙏🙇🙏🙇🙏🙇🙏🙇🙏🙇mam

  • @FINANCIALYOGI
    @FINANCIALYOGI 5 років тому

    Do you have classes in Mumbai. I HV done SQL at NIIT, but with limited input, is there anywhere I can learn unstructured DBMS and also Computer Networking in Mumbai. Kindly let me know.

  • @khemmahato8420
    @khemmahato8420 4 роки тому +1

    mam i think we should always use decomposition rule first which will make our live easy, A -> BC then A -> B and A -> C which will make our solution with no mistake.

  • @gulshantudu6177
    @gulshantudu6177 2 роки тому

    Mam hum log ac k jagah dc bhi likh skte the naa aur dc se c humara s.k hoga toh apne (ab)se hi replace kia bajae db k qqqqqq mam

  • @hiiiiiiiiamttttttt
    @hiiiiiiiiamttttttt 2 роки тому

    ❣️

  • @amitpatil7059
    @amitpatil7059 5 років тому

    rada rada

  • @DQuranJar
    @DQuranJar 4 роки тому +3

    I have a question, How can C is a candidate key? isnt c is a superkey?

    • @ayushrawat3140
      @ayushrawat3140 11 місяців тому +1

      candidate key is a super-key whose proper sub-set is not a super-key, so a an atribute example(c) can be a super-key and a candidate-key at the same time. proper sub-set means to reduce it to its simplest value and then see if its closer is a superkey or not in c if you reduce it the closer won't have all the attributes of that relation so that is why it is a candidate key. hope it helps

  • @viraltoks2004
    @viraltoks2004 Рік тому

    I think C can also be a candidate key

  • @codecrum
    @codecrum 2 роки тому

    13:44 DB is not a candidate key because D->A and further A-> null in FD = {AB->C, C->DE, E->F, D->A, C->B}.
    Correct it mam...Appreciation for the great videos

    • @palliloksai6821
      @palliloksai6821 Рік тому +1

      DB is a candidate key
      because D->A and in AB->C we can replace A with D since D->A so we can get {D,B,A,C} and from from C->DE we will get {A,B,C,D,E} AND FROM E->F DB+={A,B,C,D,E,F}

    • @codecrum
      @codecrum Рік тому

      @@palliloksai6821 thanks for solving my confusion

  • @kelvin4320
    @kelvin4320 10 місяців тому

    Given R(ABCDE) with F(B->A, A->C, BC->D, AC->BE)
    I am left with CK of (B) only since the right hand side there isn't anything that determines A but the number of CK is 2 (A, B)
    How can do i know if there is another CK A by using that method?

  • @NJ_420
    @NJ_420 5 років тому +1

    Please Upload tower of Hanoi tracing and program

  • @codeloop-byritik
    @codeloop-byritik 2 роки тому

    Since C is a candidate key then how can AB,AD,BC,CD be candidate key as Candidate key is the one whose number of prime attributes is minimal. Please correct me if I am wrong.

  • @saumaymittal612
    @saumaymittal612 5 років тому

    Please make video on index formula for 1D 2D 3D and nD array

  • @ataullah7451
    @ataullah7451 5 років тому

    Hi mam hope you r doing well please suggest best book of dbms l can follow that book with your lecture best wishes from afghanistan

  • @NHPEOPLEANDBLOGS
    @NHPEOPLEANDBLOGS 10 місяців тому

    Mam, DB replaced with CB, if again B is in RHS of c then we have to check for DC ? Please update with your answer