Database Design 33 - Cardinality

Поделиться
HTML-код
  • Опубликовано: 6 сен 2024
  • 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...

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

  • @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 6 лет назад

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

    • @Drewbernetes
      @Drewbernetes 6 лет назад +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.

  • @heyitsvolga
    @heyitsvolga 4 года назад +16

    better than my professor explaining for an entire week lol

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

    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.

  • @arnold9448
    @arnold9448 9 лет назад +8

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

  • @devikamujgule6888
    @devikamujgule6888 2 месяца назад +1

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

  • @TradingArmyBD
    @TradingArmyBD Месяц назад

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

  • @jackfrost884
    @jackfrost884 Месяц назад

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

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

    New Shirt, I love it! Live Free!!

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

  • @dboijahskush1251
    @dboijahskush1251 8 лет назад +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 7 лет назад

      yehhh and?

  • @gijshazerswoude9101
    @gijshazerswoude9101 9 лет назад +7

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

    • @mr.almezeini647
      @mr.almezeini647 3 года назад +1

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

  • @8Bitz
    @8Bitz 4 года назад +1

    Sweet new AMERICA shirt!

  • @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'?

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

    this man is a god at teaching

  • @bigmax1839
    @bigmax1839 8 лет назад +4

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

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

    Just wanted to add for those of you who are reading database systems: sixth edition Pearson as part of either a business analytics class or for data science. The book definition is speaking about the mathematical concept.
    If you need understand the difference between the two and are still struggling head over to stack overflow and type in the book definition. Someone answered it already. It helped me.

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

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

  • @alexcurran6460
    @alexcurran6460 7 лет назад +5

    cheers pal. way more help than my lecturer tbh

    • @RM-tj7lv
      @RM-tj7lv 7 лет назад +1

      haha unfortunately I know exactly what you mean

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

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

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

    Thanks Caleb ,greetings from Galapagos, Ecuador

  • @popwar6294
    @popwar6294 8 лет назад +3

    Thanks for the help friend, AIS is killing me

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

    Watching this in 2022. U were so young then.

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

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

  • @rajibtammydasgupta2068
    @rajibtammydasgupta2068 8 лет назад

    Perfect descriptions - really helped with my database homework

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

    Man, I wish you were my professor

  • @bassam9115
    @bassam9115 8 лет назад +1

    Helped quite a bit, thanks

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

    what about zero to many?

  • @nmkone2207
    @nmkone2207 5 лет назад +5

    You were great even in 2019.

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

    thanks bro

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

    Thanks for clear and nice explanation

  • @garimavohra13
    @garimavohra13 8 лет назад

    Are there any java video lectures done by you?

  • @ashleykirsch5147
    @ashleykirsch5147 8 лет назад +1

    This helped so much!! Thank you!

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

    Thanks for sharing mate

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

    Thank you!

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

    Thank you so much

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

    Thnx

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

    yoo catch you there man!!!

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

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

  • @PerscillaBrowne
    @PerscillaBrowne 9 лет назад

    great video

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

    The sound of chalk on blackboard

  • @ChoosingDana11
    @ChoosingDana11 4 месяца назад

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

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

    God😎

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

    Shaggy is that you?

  • @gerryattrik4410
    @gerryattrik4410 8 лет назад +1

    I have a big crush on you.

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

    yooo

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

    high on weed

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

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

  • @saadrana234
    @saadrana234 8 лет назад

    thanks bro