Database Design 33 - Cardinality

แชร์
ฝัง
  • เผยแพร่เมื่อ 8 ก.พ. 2025
  • Start your software dev career - calcur.tech/de... 💯 FREE Courses (100+ hours) - calcur.tech/al...
    🐍 Python Course - calcur.tech/py...
    ✅ Data Structures & Algorithms - calcur.tech/ds...
    ~~~~~~~~~~~~~~~ CONNECT ~~~~~~~~~~~~~~~
    ✉️ Newsletter - calcur.tech/ne...
    📸 Instagram - / calebcurry
    🐦 Twitter - / calebcurry
    🔗 LinkedIn - / calebcurry
    ▶️ Subscribe - calcur.tech/sub...
    👨🏻‍🎓 Courses - www.codebreakt...
    ~~~~~~~~~~~~~~ SUPPORT ME ~~~~~~~~~~~~~~
    ↪ My Amazon Store - www.amazon.com...
    🅿 Patreon - calcur.tech/pat...
    🅖 GitHub Sponsors - github.com/spo...
    Ⓟ Paypal - paypal.me/calcur
    🅑 Bitcoin - 3HnF1SWTzo1dCU7RwFLhgk7SYiVfV37Pbq
    🅔 Eth - 0x350139af84b60d075a3a0379716040b63f6D3853
    📈 Buy Bitcoin - calcur.tech/cr...
    Reserve the Ruby Steel crypto rewards card and get a $25 bonus (use affiliate code "Caleb") - calcur.tech/cr...
  • วิทยาศาสตร์และเทคโนโลยี

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

  • @vmaloy9030
    @vmaloy9030 4 ปีที่แล้ว +5

    thank you so much for this Caleb. Remote Learning with this courses has been a struggle and this video (and im sure more) saved me.

  • @heyitsvolga
    @heyitsvolga 4 ปีที่แล้ว +19

    better than my professor explaining for an entire week lol

  • @arnold9448
    @arnold9448 9 ปีที่แล้ว +8

    I didn't even noticed you stuttered! ;) Thanks for your clear explanation

  • @emberafterglow4916
    @emberafterglow4916 4 ปีที่แล้ว +4

    New Shirt, I love it! Live Free!!

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

    king this was brilliant. This was so helpful!!! you didnt even stutter btw

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

    THANK YOU. I was having such a hard time grasping this concept and you made it clear

  • @alsimmons5566
    @alsimmons5566 10 ปีที่แล้ว +25

    This is not Cardinality you have explained Relationships. Cardinality is the next step where you document the min and max number of entity occurrences associated with one occurrence of the related entity. Ex. (1,4) would be placed under your connectivity diagram on the many side an (0,1) on the one side.

    • @clarianken4223
      @clarianken4223 8 ปีที่แล้ว

      sir this is what I want to know. can you tell me more? please.

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

      Al Simmons, can you please elaborate on the difference between Relationships and Cardinality? Everything I have read suggests that Cardinality and table 'Relationships' are interchangeable and your comment makes them sound only tangentially different. Can you explain what you mean by 'Cardinality is the next step'? What is the first step - defining the relationship? Isn't the relationship implied by the Cardinality? Thanks!

    • @duvipearson6251
      @duvipearson6251 7 ปีที่แล้ว

      Good thing i read the comments section.... smh

    • @AhmedHadiPADI_scuba_instructor
      @AhmedHadiPADI_scuba_instructor 7 ปีที่แล้ว

      @Al Simmon, is your comment a valid feedback or just "boring philosophy" ??? you can at least answer people you confused.

    • @Drewbernetes
      @Drewbernetes 7 ปีที่แล้ว +5

      It would be useful if people did elaborate on their comments.
      My understanding of cardinality is new but is as follows - hopefully it'll help some people (though I'm still progressing my learning for DBA):
      Things can have a high and low cardinality. Something like a boolean has a low cardinality as it has, not including null, 2 available options - true & false.
      Something with a high cardinality has a large range of options and is, by rule of thumb, more unique. ID being a perfect example as it increments and has a unique value.
      So a way you can use this to improve performance is by configuring an index to use the high cardinality value first and then use the low cardinality on the where clause.
      Imagine a DB that contains video parts that are to be processed into one single video and the ones that have been processed. You have a script that every minute checks the DB and processes the videos that require it.
      To improve the read of the data you could do:
      CREATE INDEX ON tbl (id) WHERE media_processed = FALSE
      This would allow the database to pull all of the unprocessed videos quicker than if for example you just did a select by the media_processed value as with that scenario every record would have to be checked for the true or false value.

  • @TanjinaAkter-cy7rd
    @TanjinaAkter-cy7rd 2 หลายเดือนก่อน

    Thanks for clearing this concept

  • @vio4jesus
    @vio4jesus 2 ปีที่แล้ว

    In fact Mr. Caleb, when you get a credit card you get an account for that card. Modern accounting originated with the Knight Templar, and the purpose of the account is to allow multiple family members transact on or against the held money /goods.

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

    the casio clock alarm (sound) was a golden time. at 3:56

  • @richardbolas
    @richardbolas 2 ปีที่แล้ว

    this man is a god at teaching

  • @gijshazerswoude9101
    @gijshazerswoude9101 9 ปีที่แล้ว +7

    Love the chalkboard! Thanks for the video, very helpfull.

    • @mr.almezeini647
      @mr.almezeini647 4 ปีที่แล้ว +1

      dude is so nerdy he uses old technology.
      that... THAT is one savage nerd right dey :D

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

    this was so helpful thanks!

  • @bigmax1839
    @bigmax1839 8 ปีที่แล้ว +4

    good video dude keep it up its not half as bad as you think

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

    Thank YOU! You definitely explained it in a way I can understand!

  • @alexcurran6460
    @alexcurran6460 8 ปีที่แล้ว +5

    cheers pal. way more help than my lecturer tbh

    • @RM-tj7lv
      @RM-tj7lv 8 ปีที่แล้ว +1

      haha unfortunately I know exactly what you mean

  • @dboijahskush1251
    @dboijahskush1251 9 ปีที่แล้ว +8

    hey you should do a software engineering .. your great at explaining these things compared to some of my professors...

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

      This is a part of software engineering. Software engineering is a huge topic...

    • @Menelyagor12
      @Menelyagor12 8 ปีที่แล้ว

      yehhh and?

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

    it's like watching matrix movie that had CRT embedded monitors as "advanced" technology... tech changed so much

  • @oliverchris5404
    @oliverchris5404 3 ปีที่แล้ว

    Bro you tremendously helped me❤️❤️❤️❤️❤️🙏🏽🙏🏽🙏🏽🙏🏽🙏🏽, God bless you

  • @soldadopreciso
    @soldadopreciso 6 ปีที่แล้ว

    Thanks Caleb ,greetings from Galapagos, Ecuador

  • @8Bitz
    @8Bitz 4 ปีที่แล้ว +1

    Sweet new AMERICA shirt!

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

    Man, I wish you were my professor

  • @stonermountain9147
    @stonermountain9147 4 ปีที่แล้ว

    Thanks for sharing mate

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

    Thanks for the help friend, AIS is killing me

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

    Helped quite a bit, thanks

  • @77ownage
    @77ownage 3 ปีที่แล้ว

    So, in the logical schema, you don't include intermediary relations? And if that is the case, does that mean in the 'card_holder' to 'card' relationship we can also express a 'many-to-many'?

  • @rajibtammydasgupta2068
    @rajibtammydasgupta2068 8 ปีที่แล้ว

    Perfect descriptions - really helped with my database homework

  • @nmkone2207
    @nmkone2207 5 ปีที่แล้ว +5

    You were great even in 2019.

    • @Itacho333
      @Itacho333 5 ปีที่แล้ว

      2014*

    • @maliraza3696
      @maliraza3696 3 ปีที่แล้ว

      2021 still his videos are relevant.

  • @thomastafese9470
    @thomastafese9470 2 ปีที่แล้ว

    Watching this in 2022. U were so young then.

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

    This helped so much!! Thank you!

  • @jasemabdullah8429
    @jasemabdullah8429 4 ปีที่แล้ว

    Thanks for clear and nice explanation

  • @darthbleen984
    @darthbleen984 8 ปีที่แล้ว

    yoo catch you there man!!!

  • @cybergenius4692
    @cybergenius4692 5 ปีที่แล้ว

    what about zero to many?

  • @garimavohra13
    @garimavohra13 9 ปีที่แล้ว

    Are there any java video lectures done by you?

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

    The sound of chalk on blackboard

  • @demon0192
    @demon0192 5 ปีที่แล้ว

    Thank you!

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

    Omg this is 9 years ago!
    I was going to ask if we could be friends you are really cute

  • @Kinkonomics
    @Kinkonomics 6 ปีที่แล้ว

    Thank you so much

  • @jordydemeyere5029
    @jordydemeyere5029 3 ปีที่แล้ว

    Why does he sound like Greg from succession, LOL. Thanks for the video tho.

  • @PerscillaBrowne
    @PerscillaBrowne 10 ปีที่แล้ว

    great video

  • @mh5854
    @mh5854 4 ปีที่แล้ว

    Thnx

  • @saadrana234
    @saadrana234 8 ปีที่แล้ว

    thanks bro

  • @adamland9219
    @adamland9219 6 ปีที่แล้ว

    Shaggy is that you?

  • @robloxvempor
    @robloxvempor 3 ปีที่แล้ว

    God😎

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

    I have a big crush on you.

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

    Thanks for your efforts and time. But thats not the right explaination.

  • @docnoob8978
    @docnoob8978 6 ปีที่แล้ว

    high on weed

  • @dj_sal.z
    @dj_sal.z 2 ปีที่แล้ว

    yooo

  • @gexanxavian
    @gexanxavian 2 ปีที่แล้ว

    thanks bro