ไม่สามารถเล่นวิดีโอนี้
ขออภัยในความไม่สะดวก

Keys in RDBMS

แชร์
ฝัง
  • เผยแพร่เมื่อ 16 ส.ค. 2024
  • DBMS: Keys in RDBMS
    Topics discussed:
    1. Explanation about the need for having keys in tables.
    2. Various keys involved in DBMS.
    3. Super key with example.
    4. Candidate key with example.
    5. Primary key with example.
    6. Alternate key with example.
    7. Unique key with example.
    8. Foreign key with example.
    Follow Neso Academy on Instagram: @nesoacademy(bit.ly/2XP63OE)
    Contribute: www.nesoacadem...
    Memberships: bit.ly/2U7YSPI
    Books: www.nesoacadem...
    Website ► www.nesoacadem...
    Forum ► forum.nesoacad...
    Facebook ► goo.gl/Nt0PmB
    Twitter ► / nesoacademy
    Music:
    Axol x Alex Skrindo - You [NCS Release]
    #DBMSByNeso #DBMS #KeysInDBMS

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

  • @anjaligupta7532
    @anjaligupta7532 4 หลายเดือนก่อน +27

    1000 times better explanation than our college teachers.. 👍

  • @Hey_Haroon
    @Hey_Haroon ปีที่แล้ว +11

    I m from non tech background and this topics comes in my Mba course and you explain it very smoothly. thank you !

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

      from where are u pursuing mba? is it mba in IT?

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

      @@debasisnath9951 yes, From GL Bajaj institute greater Noida

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

      Clear explanation indeed .

    • @nurlanacc1623
      @nurlanacc1623 13 วันที่ผ่านมา

      @@Hey_Haroon Email in alone is superkeu? Because it has null row

  • @ragapriyakarthikeyan3139
    @ragapriyakarthikeyan3139 11 หลายเดือนก่อน +25

    The session is too engaging ,Sir. Got cleared with all the concepts🙂.Thankyou sir

  • @danielsims5771
    @danielsims5771 11 หลายเดือนก่อน +3

    Oh my goodness. You explained the complex Lecture to a lay_man's view. I subscribed right away. Sending love from Zambia

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

      🇿🇲🇿🇲🇿🇲🇿🇲🇿🇲

  • @user-uw6tl4oz5b
    @user-uw6tl4oz5b 2 หลายเดือนก่อน +3

    1.75 X club

  • @robertbehrens7026
    @robertbehrens7026 ปีที่แล้ว +16

    you explained it 10/10, thank you so much!

  • @user-rd8rs4xl7b
    @user-rd8rs4xl7b 11 หลายเดือนก่อน +9

    Such a great teacher with clean and clear explanation! thank you!

  • @aakankshakhawase1860
    @aakankshakhawase1860 28 วันที่ผ่านมา

    Thank you for the explanation. Your explanation really helped in clearing the concepts regarding the keys.👍Great work!

  • @Torchbearer777
    @Torchbearer777 24 วันที่ผ่านมา

    Thank you for giving the knowledge about DBMS Keys ❤

  • @exploreyourself6776
    @exploreyourself6776 ปีที่แล้ว +11

    Precise And to the point.Well done 👍

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

    It is not that difficult , it was just clarity i needed. Thank you

  • @sachinragu1742
    @sachinragu1742 ปีที่แล้ว +53

    If one name is repeated twice and both the rows have null as their phone number then how will {name, phone} be a super key?

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

      {name, phone} is not a key because u can't identify a unique tuple by using this in that condition

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

      @@Kanna12377for the super key u said like we can use name, phone as key right … that eg is coming for all candidate key primary key and alternative key.. then how come u r saying it’s not a keys

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

      It is candidate key

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

      First you should make name and phone number as a key because it's not null but it's not not unique also

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

      Am also confused😢

  • @user-bl1tm3su6c
    @user-bl1tm3su6c 3 หลายเดือนก่อน

    really! understood very clearly , mainly this session has been too engaging without lag.

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

    clears all the concept about keys

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

    thank you for speaking clearly, finally found a video in which i can understand what its said

  • @tuikasrivastava1763
    @tuikasrivastava1763 24 วันที่ผ่านมา

    seriously better than my professor!!!

  • @m-47recordzz35
    @m-47recordzz35 ปีที่แล้ว +6

    Nicely explained , Thnxx alot 💙

  • @funkiel-nowka
    @funkiel-nowka ปีที่แล้ว +9

    @nesoacademy, are you sure that (Name, Phone) can be super key and candidate key?
    In "super key" part you've mentioned that you can not force an employee to have a phone number, so it can be null.
    What if we have in DB three employees named John without assigned phone number? 🤔🤔🤔

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

      we need an answer to this, @funkiel-nowka if you found out can you explaine to me aswell ?

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

      @Neso Academy

    • @haneenbaghdadi5966
      @haneenbaghdadi5966 9 หลายเดือนก่อน +1

      Even (Name, email) can't be a superkey coz what if email is Also null and the name might have repeated too...

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

      You're right! I have the same doubt. Most probably, that part of the explanation is wrong.

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

    Thank you very much for the video. I have a question, why are we picking {Name, phone} and {email} as candidate keys instead of {Name, email} and {Phone}?

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

    Thanks very clear explanation

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

    Wow, appreciate you for this.

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

    one thing i would like to add is that...
    (name + phone) cannot be a candidate key because they can have null values and the primary motive of candidate key is to uniquely identify a tuple. (name + phone) cannot be a primary key as well because primary key can't have null values.

  • @RenuSharma-iv7cs
    @RenuSharma-iv7cs 4 หลายเดือนก่อน

    Very nicely explained

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

    Beautifully explained, thank you!

  • @KathirNatarajan-wk3nc
    @KathirNatarajan-wk3nc 7 หลายเดือนก่อน

    Very very clear, really useful, wonderful explanation.great mentor u r sir, pls put more videos regarding dbms sir 🙏🙏🙏

  • @abdullateefidris-jf3ub
    @abdullateefidris-jf3ub 9 หลายเดือนก่อน +1

    Well understood, Thanks❤

  • @user-de4im7hf8i
    @user-de4im7hf8i 24 วันที่ผ่านมา

    Thanks for a lot

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

    very clear explanation. thank you

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

    Great lacture thank you for making such wonderful video .

  • @Saha121-h6y
    @Saha121-h6y 6 หลายเดือนก่อน

    Fantastic... Teaching..Great Sir Thank you sir

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

    excellent work sir, thank you!

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

    Great teacher !!!

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

    Great Explaination Sir !!!!

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

    Simple and effective explanation. Thank you

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

    You are a great teacher

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

    Thanks NESO academy for this! Indeed and infromative video !

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

    Thanks !

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

    Thank you so much sir 😃😃👌

  • @Abhishek-jh9lz
    @Abhishek-jh9lz 8 หลายเดือนก่อน +2

    100/10 ❤

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

    Thank you sir 😊

  • @adriand.2884
    @adriand.2884 ปีที่แล้ว +1

    Where is the tutorial of Normalization? I need it right now hehe, were done at keys in rdbms

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

    Super explanation 👌👌👌

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

    thank you i learnt alot from your work
    😃😃😃😃😃😃

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

    Thank you so much!

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

    In a candidate key what if one attribute values are not unique and other attributecan have a null value, How can we identify it...For example there are 3 john in the table and if two have no phone numbers then how can we identify the specific tuple

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

    Thank you for the very clear explanation. Just a question: at 11:50 you are considering among candidate keys also {Name, Phone} but according to definition, candidate key is a minimal set of attributes to be key. Since we have already considered {ID} and {SSN} as keys, minimal set of attributes to be key is 1, while in the case {Name, Phone} set of attribute is 2, which is greater. So why do we consider {Name, Phone} still as candidate key?

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

      "minimal set of attributes" it implies that if you remove an attribute from it, it's no longer a key. minimal doesn't mean number of attributes, implies no extra attributes

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

    Nice explanation 💥💥💯

  • @yoyo-hm2qo
    @yoyo-hm2qo 5 หลายเดือนก่อน

    wonderful!!thanks,i understand it 100%😂

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

    great teacher😊

  • @hscodingdairies14
    @hscodingdairies14 10 หลายเดือนก่อน +1

    Can someone please explain what is a unique key because it seemed same as alternate keys

  • @nurlanacc1623
    @nurlanacc1623 13 วันที่ผ่านมา

    Email in alone is superkeu? Because it has null row

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

    (Name, email) what if the email is Null but the name alone cannot identify uniquely a tuple? In my opinion in this case it cannot be a superkey

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

      Yess....even (Name, phone) can't be a super key...the phone no. Can also be null and the name can be repeated too...ig we hv to assign these attributes with certain keys separately....

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

    You can add one thing here that is unique key allow only one null value....not more than one

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

    how name and phone can be super key if there are 2 employees with same name and having null in their phone number field.

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

    Thank you sir for nice explanation ❤️

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

    Thankyou sir ✨

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

    super key is like super set.but actually it is power set of keys

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

    If a column does not uniquely identify a tuple..it can't be a key...then how can u say email I'd can be a super key while it can contain null value

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

    Thank you !

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

    Sir could you post SQL tutorial

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

    Thank You

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

    Unique key can b id or ssn right.. how come name, phone will be unique key

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

      I have the same question how the phone number can be a unique key? There could be multiple nulls.

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

    Let's assume a airplane reservation system. What can be a primary key? Flight Number or Flight Number+Date

    • @Hahe2023
      @Hahe2023 7 หลายเดือนก่อน +1

      I think both can act as a primary key but according to lecture " primary key should never and rarely be changed " 15:55 So there may be chance of date not mentioned (null) so flight number will definitely be a primary key.

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

    So, the unique key, must support null values apart from being unique ?

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

    Thanks

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

    So, super key is set of all possible combinations of attributes that can uniquely identify tuples. Is it right?

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

    Composite key at 19:28

  • @SatyamMaurya..
    @SatyamMaurya.. 5 หลายเดือนก่อน

    12:41 here , (salary and phone) too.

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

    Thankyou sir ❤❤❤❤😊😊😊

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

    Is it possible for a unique and composite key to be something other than a candidate key?

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

    Thank you

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

    Thanks bro

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

    Lecturer key loves names like yusuf, alya, John , Robin etc.

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

    why is salary on the table if you dont make use of it? Why is it not an alternate key?

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

    Great

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

    Which one was the foreign key ??? Dept. Code or any other ??

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

    In the super key what if two employees having same name both don't have phone number , how will you uniquely edit their data

    • @AlphaNOVA69
      @AlphaNOVA69 หลายเดือนก่อน +1

      Then it is not a super key, a super key should have attributes that are uniquely identifiable for each entry

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

    How can {Name, Phone} uniquely identify a tuple? Phone is nullable, right?

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

    l think Name and Phone togather cant be a super key, cause we can have two Johns that dont have phone numbers! please correct me if im wrong

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

      phone no is unique also it is can be null so it is super key i think

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

    How can the set {Name, Phone} be a super key if multiple people can have the same name and not every person has a phone number?

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

      Super key is possible of all combinations even null attributes can be used

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

      Phone number alone and with others can be made super key but name won't !

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

      Ask ChatGpt after providing some attributes to it

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

    nandri thale

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

      😂😂
      Mass bro nee 😂

  • @Ganeshay-996
    @Ganeshay-996 7 หลายเดือนก่อน

    Primary key --> PK
    PK is unique, NOT NULL, required , never duplicate and used for uniquely identify the data in table.
    every table have a max 1 PK.
    create table empinfo(
    id number primary key,
    ename varchar2(20),
    deptid number
    );
    Unique key --> UK
    UK is unique, required, never duplicate and used for uniquely identify the data in table.
    table can have more than 1 unique key.
    UK allows null.
    every null is unique, we can not compare null to another null. thats why UK allows null, because it treats every null as unique.
    10+null = null
    10- null = null
    null is unknown and undefined, we do not know the value, so it always gives us null

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

    at 19:19 name is not a unique key phone is a unique key and you are saying that set of name and phone is unique key, what if two employee of same name don't have phone number.

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

      only phone number is also not a key. multiple employee might have no phone....2ndnot- employees with same name might also have no phone. so 'only name', 'only phone number', 'both name and phone number' are not keys...forget which type...those are not key first

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

    salary also can't be a superkey, right?

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

      Yupp

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

    why email is not unique key> as it is unique and null value

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

      some companies allow employees to have multiple email addresses, or they might have an email alias system where multiple employees share the same email domain. Additionally, allowing null values means that not all employees are required to have an email address, which further complicates setting it as a unique key.

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

    yramirp yek dne: 14:32

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

    can a candidate key have null values?pls anyone reply

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

      Yess...Candidate key attribute can contain null values.
      Also know that it does not allow the same value in the attribute field.

  • @nashin0ki927
    @nashin0ki927 11 หลายเดือนก่อน +1

    8:16

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

    bro in 12:42 {name,email } will come or not ?

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

      No...becoz name attribute has already appeared ...in {Name, phone} so u can't have repeated attributes in candidate keys... same goes for email...see this part again 12:17 ...as u can see the email has also appeared once{Email} so u can't hv it again.

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

    Evatiki keys chepdam Saritha radhu ra😂😂😂😂😂

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

    🎉🎉

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

    12:28

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

    Who’ll say composite key? Me?

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

    2.4 mil oof

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

    OMG, no no no no!

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

    Koi BCA 2nd Sem se hai