Working with Primary & Foreign key Constraint in SQL Server | SQL Server Tutorial

Поделиться
HTML-код
  • Опубликовано: 26 дек 2024

Комментарии • 276

  • @NareshIT
    @NareshIT  5 лет назад +14

    Please Comment, Subscribe and Click Bell🔔🔔🔔 Icon for More Updates. To learn software course from our experts please register here for online training: goo.gl/HIB0wL

  • @mukundnawale6565
    @mukundnawale6565 2 года назад +7

    I SEARCHED MANY YOU TUBE VIDEOS FOR UNDERSTANDING THIS CONCEPT I I DIDNT GET ANY ACCURATE PLATFORM BUT AS A LAST TRY I OPEN THIS AND I GET UNDERSTAND.... IT IS SUPERB AND SUBERB WAY TO EXPLAIN WITH EXMPLE
    THANK YOU

  • @AlamontagnedelEternel
    @AlamontagnedelEternel 5 лет назад +22

    I really like the way you have explained both Primary Key (PK) and Foreign Key (FK) from basics using theories. It was very very clear

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @baijayantisundaray210
    @baijayantisundaray210 5 лет назад +21

    concept is nicely explained, Non-IT student can understand it as well

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @netajimohite3744
    @netajimohite3744 4 года назад +8

    Very simple and easy to understand everyone. Thanks

  • @rehanashaik5497
    @rehanashaik5497 3 года назад +2

    Thank u sooooooooooooooooo much sir plz again and again plz do the complete SQL and tsql i really understand what ur thougting each and every point

  • @ajtechboy1424
    @ajtechboy1424 Год назад +1

    You are all in one Boss wow God richly bless you for us all ❤

  • @vengalrao5772
    @vengalrao5772 3 года назад +1

    Really hatsoff bcoz itwas shooted 4 years ago 🙏🙏🙏❤️🤷 and very nice explanation !

  • @LoveShashikanta
    @LoveShashikanta 4 года назад

    my favourite teacher in Naresh It you are so talented sir you explained very clearly and easy to understand everyone

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @Shaik_zabi
    @Shaik_zabi 3 месяца назад

    Really I watched many videos about PK and FK i didn't get after I watched your video clearly understood thank you soo much sir🎉 for clear explanation.

  • @herilshah652
    @herilshah652 Год назад

    Thanks for clearing the concept.Now it is more easy to understand and do practical

  • @umamaheshpilla4951
    @umamaheshpilla4951 3 года назад +4

    This concept is like an inheritance concept in Java programming language. Properties of parent class will be accessed by child class .. Good explanation from you sir👏👏 very glad to see your videos..

    • @cococnk388
      @cococnk388 2 года назад +1

      yes you are right, but not all reference values in the parent table must be in the child table column...so it doesnot necessarily take all the properties of the parent (but all the values of the child column must be in the parent table (column)).

  • @kunaljoshi2358
    @kunaljoshi2358 2 года назад

    Best faculty for oracle in nareshIT🙏😌

  • @melodymathew5218
    @melodymathew5218 7 лет назад +4

    The concept is clearly and nicely explained..

  • @cm-037hemanth8
    @cm-037hemanth8 2 года назад +1

    Thank you sir for explaing more clearly

  • @saitejapendli7036
    @saitejapendli7036 Год назад

    Nice explanation with very good example thank you so much 👍...

  • @KarthiKeyan-re1uh
    @KarthiKeyan-re1uh 6 лет назад +8

    Really you done a very great lesson sir ..its so useful for my interview.. Thank u😇

  • @Kishorekumar-wt3rg
    @Kishorekumar-wt3rg Год назад

    You have cleared all my doubt in this video😊
    Thank you sir

  • @alialrahem9817
    @alialrahem9817 4 года назад

    your videos are so clear and l learn a lot good teaching and explanation thank you

  • @tteejjj
    @tteejjj 3 года назад

    Teaching best.... Perfectly explained 👍👍👍

  • @balusubbu81
    @balusubbu81 4 года назад

    Crystal clear explanation sir I love u. . god of explanation

  • @shubhamchavan2441
    @shubhamchavan2441 Год назад

    Thanks a lot sir.. I was confused in Key topic , this vdo solved my confusion..

  • @greezelsenilla9959
    @greezelsenilla9959 5 лет назад +2

    thanks for this tutorial... at least i know from you ..... unlike my teacher i learned nothing .......he don't know how to teach

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @vinoderramsetty1093
    @vinoderramsetty1093 2 года назад +1

    Great Explanation!!

  • @Travelling_With_Kamalu
    @Travelling_With_Kamalu Год назад

    Dear Sir.. big thank you -- for the clear my concept

  • @worldoframanan3358
    @worldoframanan3358 3 года назад

    Thankyou sir real life saver

  • @726ashok
    @726ashok 5 лет назад

    Concept is very much clear...nice explanation..thanks

  • @mrandroidzone2099
    @mrandroidzone2099 2 года назад

    Very helpful sir, explanation was very clear and understood.

  • @bandaruneeraj7246
    @bandaruneeraj7246 2 года назад

    Cristal clear Explanation

  • @menagasanthaseelan6612
    @menagasanthaseelan6612 2 года назад

    very very good and nice explanation sir. thank you

  • @qugamechannel6876
    @qugamechannel6876 5 лет назад +4

    I love man!! It helped me alot i wish i had a teacher like you

  • @yogeshchaudhari8441
    @yogeshchaudhari8441 3 года назад

    Very Nicely Explained 👍👍

  • @muskanramchandani7642
    @muskanramchandani7642 Год назад

    Awesome Explanation

  • @sandhiyas9987
    @sandhiyas9987 3 года назад

    Thnq fr teaching us a good way it's very easy to understand 😌

    • @maven558
      @maven558 3 года назад

      Hello Sandhiya

    • @maven558
      @maven558 3 года назад

      Are you working anywhere?

  • @anirudhvedullapalli4147
    @anirudhvedullapalli4147 2 года назад

    Thanks a lot bro you are genius👏💙

  • @ranjithas7238
    @ranjithas7238 3 года назад

    You have given good explanation sir. Thank q sir.

    • @maven558
      @maven558 3 года назад

      Hello Ranjitha you working anywhere?

  • @sureshmanthri6492
    @sureshmanthri6492 4 года назад

    Nice..good explanation by taking simple examples...Thank you sir..

    • @abhisurya7487
      @abhisurya7487 4 года назад

      check this quiz on SQL ruclips.net/video/Hs5I24HSzsg/видео.html this might be useful for you. @Cheers!

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

    • @cococnk388
      @cococnk388 2 года назад

      @@abhisurya7487 we no longer have acces to the link? can we have a new one?

  • @sureshv7739
    @sureshv7739 3 года назад

    simple but very clear

  • @NARAHARINAYAK-vx3xd
    @NARAHARINAYAK-vx3xd 15 дней назад

    HARE KRISHNA ..SIR
    VERY INCE TEACHHING

  • @gatorade1129
    @gatorade1129 4 года назад +1

    Very well explained...thanks for these amazing videos...concepts are getting clear

  • @sureshkv8123
    @sureshkv8123 2 года назад

    Explanation is super

  • @buddhikaperera5716
    @buddhikaperera5716 4 года назад

    thank you very much. this is the lesson i have been looking .. your presentation is very clear.

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @Sanjay-gz2wj
    @Sanjay-gz2wj 3 года назад +1

    Well explained Sir.... Thank you.. Keep up the same..

  • @sandeepkumarverma6331
    @sandeepkumarverma6331 5 лет назад +2

    It's really very helpful video lacture. Thank you so much sir 😊🤗

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @souvikdas812
    @souvikdas812 4 года назад

    great video,,,,this is very helpful,,,concept is very clear

    • @abhisurya7487
      @abhisurya7487 4 года назад

      check this quiz on SQL ruclips.net/video/Hs5I24HSzsg/видео.html this might be useful for you. @Cheers!

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @saiendeavours2154
    @saiendeavours2154 2 года назад

    Thanks for this video. Indeed helpful. Nice explanation!!!

  • @jeevaratnam3336
    @jeevaratnam3336 11 месяцев назад

    Good teaching sir

  • @vidyasagar5212
    @vidyasagar5212 2 года назад

    Excellent 👍

  • @srinivasentertainments2690
    @srinivasentertainments2690 3 года назад

    Good explaination sir

  • @thembeselecomene7385
    @thembeselecomene7385 2 года назад

    THANKS, THIS IS VERY CLEAR

  • @bavadharanianbazhagan64
    @bavadharanianbazhagan64 3 года назад

    Thank you for the understanding..

  • @mdnadeem4288
    @mdnadeem4288 4 года назад +1

    Thank soo much sir

  • @kajalpatil2400
    @kajalpatil2400 3 года назад +1

    But how to use PK & FK in 3/4/5 tables how to understand which key use for which table .....

  • @varalakshmivara9360
    @varalakshmivara9360 5 лет назад

    Excellent teaching sir

  • @jayanthiramcharan4419
    @jayanthiramcharan4419 3 года назад

    Thanx for ur explanation sir ...❤️

  • @krishnashauzshenikala9240
    @krishnashauzshenikala9240 5 лет назад

    Excellent explanation sir

    • @anilamurtha2034
      @anilamurtha2034 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @mahwishali1092
    @mahwishali1092 6 лет назад +1

    It's really very helpful..Thank you so much Sir!

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @priyaroy9509
    @priyaroy9509 2 года назад

    Awesome lecture

  • @pradeepkumarv5184
    @pradeepkumarv5184 4 года назад

    thank you sir lecture video awesome its helped me lot...👍

  • @pravinromano8774
    @pravinromano8774 3 года назад

    thank you sir, very nice explanation sir, it is very helpful for me sir, thank you once again sir

  • @sandeepkhawas3367
    @sandeepkhawas3367 3 года назад

    Wishing you all the happiness..! Like the way you have explained.!***

  • @mohansaivelagapudi929
    @mohansaivelagapudi929 3 года назад

    Thanks for helping sir

  • @avtarsashia4897
    @avtarsashia4897 5 лет назад

    thank u sir...you are giving concept clearing lectures

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @Negere-maryam
    @Negere-maryam 4 года назад +1

    thank you more my teacher!

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @bhaskararaogaddam4221
    @bhaskararaogaddam4221 5 лет назад

    Excellent class

  • @bhaskarreddy-qo9sz
    @bhaskarreddy-qo9sz 5 лет назад

    Nice explanation sir

  • @jeevanperala5138
    @jeevanperala5138 4 года назад +2

    Sir as you told we can establish relationship between multiple tables by using the primary key and foreign keys.... But how...?? I'm thinking that primary key is only one(i.e fixed) but 'n' number of foreign keys are used with reference to primary key...???

    • @MrBryan4you
      @MrBryan4you 3 года назад

      Same I’m thinking

    • @MrBryan4you
      @MrBryan4you 3 года назад

      I have re watch his video and analysis... Yer, same thing he did.. Basically, you have to use the foreign key column and you can choose any other column from the child or second table with same data type ... I hope it helps

    • @MrBryan4you
      @MrBryan4you 3 года назад

      Another issue is, when doing this in Oracle the syntax is hard to get right ... been trying to use the alter syntax and add constraint but it’s terrible 😭

    • @cococnk388
      @cococnk388 2 года назад

      In order to know if a Primary Key column (parent) will be a foreign Key column in another table (child)...we should first map a relationship between the tables and find the cardinalities of the association..
      table 1 (1,1 ) mapped to the table 2(0,n).....the primary key column of table 2 (parent) will become a foreign key column in table 1 (child)..
      the primary Key column of table 2 (parent) has unique and NOT NULL values
      the foreign Key column of table 1 (child) will have NON UNIQUE VALUES and NOT NULL (all of its values must be in the primary key column of the parent table 2)

  • @VamshiKrishna-it3pf
    @VamshiKrishna-it3pf 4 года назад

    great explanation sir

  • @jagadeeshk3910
    @jagadeeshk3910 4 года назад

    Worthful.. Thank you.

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @HARISHBUDDY
    @HARISHBUDDY 6 лет назад

    Supebb sir. excellent teacheing......

  • @nagurumarshaik3991
    @nagurumarshaik3991 6 лет назад

    good sir as i am beginner i understand well

  • @Yagerlij7016
    @Yagerlij7016 2 года назад

    THANK YOU BROTHER.

  • @gemlanguevara9159
    @gemlanguevara9159 4 года назад

    Thank you sir👏🏻👏🏻👏🏻👏🏻

  • @paarupallu6386
    @paarupallu6386 4 года назад

    good session sir

  • @ॐसूर्यायनमः-घ3झ

    Then what's is the use of it, we need to create first parent table, then child table, how we can use it dynamically ?
    I tried several times, also I first create parent table, and then use last insert I'd option, to insert in child table column, but facing errror. 😭

  • @SrinadhVibesandBites
    @SrinadhVibesandBites 3 года назад

    well explained sir

  • @justforyou7866
    @justforyou7866 6 лет назад

    very very gd methode of teaching

  • @joyjk.
    @joyjk. 4 года назад

    very good video thanks, Sir

    • @abhisurya7487
      @abhisurya7487 4 года назад

      check this quiz on SQL ruclips.net/video/Hs5I24HSzsg/видео.html this might be useful for you. @Cheers!

  • @mathsystem8452
    @mathsystem8452 2 года назад

    I want to know that where we create front hand of this sql database backend

  • @CuriousFear
    @CuriousFear 5 лет назад +1

    thank you come again

  • @manishpal7454
    @manishpal7454 4 года назад

    It is really nice

  • @gouravchugh7524
    @gouravchugh7524 3 года назад

    Thanks 🙏 🙏 🙏 🙏

  • @crazyvideosshah2864
    @crazyvideosshah2864 6 лет назад

    Awsome sir.... Thank u.. To help them..

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @SugamMaheshwari
    @SugamMaheshwari 6 лет назад +1

    thank you sir!
    very much appreciated

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @oscarandcamille
    @oscarandcamille 7 лет назад

    Very good explanation !!!

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @santharajup7150
    @santharajup7150 Год назад

    Thank you sir super

  • @Ezhil_arasi21
    @Ezhil_arasi21 6 лет назад +1

    Sir whether v should use only same values in foreign key table and primary key table values

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @yaravallirohit8014
    @yaravallirohit8014 3 года назад

    Good one sir

  • @cococnk388
    @cococnk388 2 года назад

    Thank you so much

  • @vamsi4411
    @vamsi4411 2 года назад

    Even if my tables doesn't have any matching columns can I give pk and fk..in the case of connecting 3 tables ??

  • @manjuelaiya8597
    @manjuelaiya8597 7 лет назад

    i need anser for this , to ensure that the amount withdrawn should be less than the credit card limit amount , to ensure integrity what type constraints will be used ?
    a. column level check constraints
    b.table level foreign key constraints
    c.table level check constraints
    d.column level foreign key constraints

  • @javierdiaz1855
    @javierdiaz1855 5 лет назад +2

    Hi and thank you for your videos. How can I make three tables to follow each other? Thanks again

    • @cococnk388
      @cococnk388 2 года назад

      Let us say we have table 1, table 2 and table 3
      Create a relationship (Primary Key and Foreign Key) between table 1 and 2, another one between table 2 and 3 or table 3 and 1..
      Use the join to retrive data from the 3 tables.
      Hope it helps.

  • @prasadk7792
    @prasadk7792 5 лет назад

    Thanq sir very helpful

  • @surenkumars3181
    @surenkumars3181 2 года назад

    thank you so much sir

  • @shivavishwakarma7109
    @shivavishwakarma7109 2 года назад

    Great sir

  • @maddytherover
    @maddytherover 7 лет назад

    thank u very much sir for providing knowledge to us.

    • @jesayjulie2828
      @jesayjulie2828 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @prathameshhiremath1379
    @prathameshhiremath1379 3 года назад

    thank you sir........!!!!!!!

  • @97sravanthi
    @97sravanthi 6 лет назад +5

    For other constraints in this tutorial please refer 36/47 vedio that is Working with Unique Not Null And check Constraints in SQL Server | MSSQL Training | By Mr.Sudhakar L
    ruclips.net/video/o9WGbvWP2iE/видео.html

  • @AKHILDS-j3v
    @AKHILDS-j3v 6 лет назад

    thank you anna..............njan oop exam pass aayath ee chanell karanma//thank you///

    • @marychris2318
      @marychris2318 4 года назад

      ruclips.net/video/rRmI16IkqG0/видео.html

  • @sagarjain4128
    @sagarjain4128 2 года назад

    I understood all. Is this an example of Primary key constraint?