Database Design 29 - Foreign Key Constraints

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

КОМЕНТАРІ • 43

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

    One of the best things about self-studying is coming across cool dudes like this who can explain things in a good way, thanks!

  • @briddenattech
    @briddenattech 5 років тому +22

    "Sorry if I talk fast."
    Bud, I've been listening to you at 2x. Talk as fast as you want. Give me a challenge.

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

    I not only learned some essential things here that allowed me to understand the schema of a programmer I know, but it makes me feel like you are my older grandson! You are brilliant AND adorable. Thank you. Also, I could not understand why fields in Infinium were being changed by SQL while working in a contract position. Now I realize the programmer probably was not aware that all these things are BUILT INTO Infinium and don't need to be updated, deleted or inserted by SQL. That approach is very illogical but it makes me appreciate IBM application SO MUCH. I don't hate SQL or Microsoft but it increased my appreciation of the iSeries (old AS400) systems and applications they support.

  • @codebreakthrough
    @codebreakthrough  10 років тому +2

    Learn about Foreign Key Constraints by clicking below. Make sure you watch the other videos in the series!
    buff.ly/1uqxUf6

  • @joelkeane8740
    @joelkeane8740 7 років тому +6

    Awesome video mate! Really well explained - thanks : )

  • @minhtao9774
    @minhtao9774 7 років тому +3

    "Get away stupid fly!" Hahahaha! Best part of this video =] and everything else hehe!

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

    Thank you man. Amazing explanations and easy to understand!

  • @pearlipop
    @pearlipop 10 років тому +6

    Your teaching is great Caleb, thank you for your videos! I have a question, is your goal to be a teacher? Or are you one, already?

    • @codebreakthrough
      @codebreakthrough  9 років тому +13

      ***** I am! ...on UA-cam. hehehehe

    • @joshfraser3991
      @joshfraser3991 6 років тому

      pearlipop is right you are good! I am going to follow you!

  • @basementhermit3607
    @basementhermit3607 8 років тому +1

    Excellent explanation, very easy to understand. Thanks a lot for uploading this video.

  • @amynash1999
    @amynash1999 7 років тому +2

    one of the better videos on database.

  • @alexdan111111111111
    @alexdan111111111111 9 років тому

    Great! I have never found yet such a great explanation on other tutorials... ON DELETE/ON UPDATE ... RESTRICT/CASCADE/SET NULL.
    ON DELETE SET NULL... that fantastic. You can delete the parent, but not the childeren...

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

    In what book I can learn these database concepts? Do you have any recommendations?

  • @grafitechdesigns6312
    @grafitechdesigns6312 9 років тому

    great job bro, do you have videos on selection of tuple, projection operator, Cartesian product?

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

    well explained. thanks

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

    thx buddy it was so helpful you teach really well ^^

  • @somachicasincity4232
    @somachicasincity4232 10 років тому +1

    Thank you again this was helpful!

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

    Question, is there any conflict to FK constrain once i am going to backup the table which associated to the FK?

  • @manjuelaiya8597
    @manjuelaiya8597 7 років тому

    i need answer for this question
    To ensure that the amount withdrawn shoulb be less then the credit card limit amount , to ensure integrity what type constraint will be use ?
    a. column level check constraint
    b.table level foreign constraint
    c.table level level check constraint
    d.column level foriegn key constraint

  • @anishkuber764
    @anishkuber764 7 років тому +3

    Thanks man

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

    Well explained 👍👍👍👍

  • @dnj20
    @dnj20 9 років тому +1

    thumbs up. t'es vraiment bon

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

    well explained Foreign Key Constraints

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

    thanks man life saver

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

    Thanks from morocco

  • @robertoquinones785
    @robertoquinones785 7 років тому +1

    Great DUDE!!! Thanks

  • @amritkaur2142
    @amritkaur2142 9 років тому +5

    u r awsome

  • @soultouchingsongs
    @soultouchingsongs 6 років тому

    Excellent. Thanks a ton!

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

    Good explanation

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

    Reddit shows the comments forever, unless the comment is deleted. It just updates the user to [deleted]... I wonder if they set null, or some other set like 'set = 0' and any comment with 0 or null (whatever they do) is the user [deleted] However, i think if you restore your account, it restores the comment owner. They're good

  • @davidflash1
    @davidflash1 7 років тому

    thanks, regards

  • @sierrakilo9695
    @sierrakilo9695 6 років тому

    So how WOULD you keep comments if a user deletes their account?

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

      an update to set all comments by user x to null in the child table with the comments by users, select pk * inner join select fk from comments table where user = x

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

    504 - gcih. 508 - gcfa

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

    Most of these constraints are based on the fact that you plan on changing the primary key in one of the tables - which you should never do. Foreign keys are important. But foreign key contraints? meh. Just make sure to never change the value of a primary key.

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

      Well foreign key constraints also ensure that the value of the foreign key field exists in the referenced column on insert. That way you you avoid orphaned rows

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

      @@codebreakthrough which is what the fk constraint construct is for, if you choose to use it. It's not a normal thing to do clearly, but can be useful. His overview also helps people understand basic key and constraint interaction concepts, important to beginners

  • @OneTimWhatley
    @OneTimWhatley 7 років тому +2

    Your chalk is small.

  • @kld0093
    @kld0093 9 років тому

    noll

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

    gosh you are so handsome..

  • @user-em9mw9ch3y
    @user-em9mw9ch3y 6 років тому +1

    People would love you in India. (hint : your surname)

  • @manjuelaiya8597
    @manjuelaiya8597 7 років тому

    i need answer for this question
    To ensure that the amount withdrawn shoulb be less then the credit card limit amount , to ensure integrity what type constraint will be use ?
    a. column level check constraint
    b.table level foreign constraint
    c.table level level check constraint
    d.column level foriegn key constraint