Keys in RDBMS

Поділитися
Вставка
  • Опубліковано 21 лис 2024

КОМЕНТАРІ • 159

  • @anjaligupta7532
    @anjaligupta7532 7 місяців тому +58

    1000 times better explanation than our college teachers.. 👍

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

    My professor doesn't even know what he's most of the time, thankfully we have the help we can get here. Thank you very much!

  • @Hey_Haroon
    @Hey_Haroon Рік тому +14

    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 6 місяців тому

      Clear explanation indeed .

    • @nurlanacc1623
      @nurlanacc1623 3 місяці тому

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

  • @danielsims5771
    @danielsims5771 Рік тому +5

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

  • @ragapriyakarthikeyan3139
    @ragapriyakarthikeyan3139 Рік тому +30

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

  • @BRIMACONTEH-d3v
    @BRIMACONTEH-d3v Рік тому +9

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

  • @exploreyourself6776
    @exploreyourself6776 2 роки тому +11

    Precise And to the point.Well done 👍

  • @robertbehrens7026
    @robertbehrens7026 Рік тому +18

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

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

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

  • @VigneshwaranS-n2i
    @VigneshwaranS-n2i 6 місяців тому

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

  • @Torchbearer777
    @Torchbearer777 4 місяці тому

    Thank you for giving the knowledge about DBMS Keys ❤

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

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

  • @aakankshakhawase1860
    @aakankshakhawase1860 4 місяці тому

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

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

    clears all the concept about keys

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

    Good explanation 😊

  • @KathirNatarajan-wk3nc
    @KathirNatarajan-wk3nc 10 місяців тому

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

  • @m-47recordzz35
    @m-47recordzz35 2 роки тому +6

    Nicely explained , Thnxx alot 💙

  • @Saha121-h6y
    @Saha121-h6y 10 місяців тому

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

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

    very clear explanation. thank you

  • @tuikasrivastava1763
    @tuikasrivastava1763 4 місяці тому

    seriously better than my professor!!!

  • @manasvikumarthakur5471
    @manasvikumarthakur5471 8 місяців тому

    Great Explaination Sir !!!!

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

    You are a great teacher

  • @RenuSharma-iv7cs
    @RenuSharma-iv7cs 7 місяців тому

    Very nicely explained

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

    Really use very usefull. Appreciated your efforts of sharing !!!

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

    excellent work sir, thank you!

  • @yusefiguess
    @yusefiguess 4 місяці тому

    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}?

  • @Cobenis_Kar
    @Cobenis_Kar Рік тому +2

    Beautifully explained, thank you!

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

    Thanks very clear explanation

  • @shrts-l8i
    @shrts-l8i 5 місяців тому +11

    1.75 X club

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

    Simple and effective explanation. Thank you

  • @abdullateefidris-jf3ub
    @abdullateefidris-jf3ub Рік тому +1

    Well understood, Thanks❤

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

    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 7 місяців тому

      "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

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

    Great teacher !!!

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

    Thanks NESO academy for this! Indeed and infromative video !

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

    Great lacture thank you for making such wonderful video .

  • @MEHARAsad-n3e
    @MEHARAsad-n3e 2 місяці тому

    great ...explanation

  • @tinkupavan565
    @tinkupavan565 8 місяців тому

    Super explanation 👌👌👌

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

    Wow, appreciate you for this.

  • @nitikaphogat8084
    @nitikaphogat8084 2 місяці тому +3

    At 12:14 Wouldn't name ,email also be candidate key ...because name alone cannot be a key but when combined with phone number it become candidate key ....so I think name combined with email will also be candidate key ...... correct me if I am wrong

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

      You're right, If PhoneNumber and Email are not unique across tuples then both {Name, PhoneNumber} and {Name, Email} can be candidate keys.

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

      @@ezanatadesa2485 If Phone Number can be NULL, then (Name, Phone Number) cannot even be a candidate key can it?
      If John 101 and John 105 both have a NULL phone number then the key does not uniquely identify the tuple.

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

    great teacher😊

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

    Nice explanation 💥💥💯

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

    Thank you so much sir 😃😃👌

  • @atharva..deshmukh
    @atharva..deshmukh Місяць тому

    Excellent!!

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

    Thank you sir 😊

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

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

  • @adriand.2884
    @adriand.2884 Рік тому +1

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

  • @ayaanshaidahusain507
    @ayaanshaidahusain507 5 днів тому

    Damn good explanation

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

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

  • @funkiel-nowka
    @funkiel-nowka Рік тому +10

    @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 Рік тому

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

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

      @Neso Academy

    • @haneenbaghdadi5966
      @haneenbaghdadi5966 Рік тому +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 9 місяців тому

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

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

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

    • @Hahe2023
      @Hahe2023 10 місяців тому +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.

  • @yoyo-hm2qo
    @yoyo-hm2qo 8 місяців тому

    wonderful!!thanks,i understand it 100%😂

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

    Thank you so much!

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

    Thank you sir for nice explanation ❤️

  • @Tijiyabhanu
    @Tijiyabhanu 5 днів тому

    Sir Unique key means it accepted null values or not

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

    its not mandatory chosen by DBA its depends on application developer which field is required and why so correct your knowledge DBA only responsible for permission related access not application related

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

    Thank You

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

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

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

    Composite key at 19:28

  • @Abhishek-jh9lz
    @Abhishek-jh9lz Рік тому +2

    100/10 ❤

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

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

  • @AhmadRazaNaveed
    @AhmadRazaNaveed 4 місяці тому

    Thanks for a lot

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

    Thank you !

  • @umabharathyts1998
    @umabharathyts1998 4 місяці тому

    Thanks !

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

    Im getting a Neso Academy tattoo

  • @boy-bf3si
    @boy-bf3si 27 днів тому +1

    12:16 why phone number isn't a candidate key

  • @Getagrip8
    @Getagrip8 4 місяці тому

    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

  • @HetShah-ww8ph
    @HetShah-ww8ph 3 місяці тому

    One doubt :
    Super keys contain null values :
    {name,phone number} but if
    1.{ john,null } and again in table we have
    2.{john,null} than how we will identify the actual john than how it is valid…

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

      Name and phone no can't be super key. Super key should able to uniquely identify tuple. It should have atleast one attribute which is able to uniquely identify tuple, along with it can continue additional attribute which are not helping to uniquely identify the tuple. Ssn,name and phone no can be super key

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

    Thanks

  • @nurlanacc1623
    @nurlanacc1623 3 місяці тому

    Email in alone is superkeu? Because it has null row

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

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

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

    Thankyou sir ❤❤❤❤😊😊😊

  • @Ganeshay-09
    @Ganeshay-09 10 місяців тому

    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

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

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

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

    Thanks bro

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

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

  • @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 Рік тому

      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....

  • @sachinragu1742
    @sachinragu1742 2 роки тому +61

    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 Рік тому +4

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

    • @anusuyag5183
      @anusuyag5183 Рік тому +3

      @@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 Рік тому +1

      It is candidate key

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

      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 Рік тому +4

      Am also confused😢

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

    nandri thale

    • @varanaze.
      @varanaze. Рік тому

      😂😂
      Mass bro nee 😂

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

    Thank you

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

    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

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

    awesome

  • @SatyamMaurya..
    @SatyamMaurya.. 8 місяців тому

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

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

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

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

    Sir could you post SQL tutorial

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

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

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

    Can only a null value be a candidate key?

  • @rocklee3254
    @rocklee3254 4 місяці тому

    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.

  • @HetShah-ww8ph
    @HetShah-ww8ph 3 місяці тому +1

    It is possible that both john have null phone numbers than how can we identify the actual john?????????? From the table ………

    • @userkanikanika
      @userkanikanika 3 місяці тому

      Simple It's ID
      ID is always Unique

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

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

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

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

  • @skyskitchen7872
    @skyskitchen7872 8 місяців тому

    salary also can't be a superkey, right?

    • @4rithv1
      @4rithv1 8 місяців тому

      Yupp

  • @syedidrees7354
    @syedidrees7354 4 місяці тому

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

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

    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 8 місяців тому

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

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

    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 4 місяці тому +1

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

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

    Great

  • @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.

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

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

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

      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.

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

    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 7 місяців тому

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

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

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

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

      Ask ChatGpt after providing some attributes to it

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

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

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

      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.

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

    Who’ll say composite key? Me?