Learn Database Normalization - 1NF, 2NF, 3NF, 4NF, 5NF

Sdílet
Vložit
  • čas přidán 8. 06. 2024
  • An easy-to-follow database normalization tutorial, with lots of examples and a focus on the design process. Explains the "why" and "how" of normalization, and takes you step-by-step through:
    - First Normal Form (1NF)
    - Second Normal Form (2NF)
    - Third Normal Form (3NF), with a side note on Boyce-Codd Normal Form (BCNF)
    - Fourth Normal Form (4NF)
    - Fifth Normal Form (5NF)
    0:00 What is database normalization?
    3:55 First Normal Form (1NF)
    10:24 Second Normal Form (2NF)
    16:08 Third Normal Form (3NF)
    20:29 Fourth Normal Form (4NF)
    23:47 Fifth Normal Form (5NF)
    26:41 Summary and review
    Corrections can be found in the pinned comment.

Komentáře • 1K

  • @decomplexify
    @decomplexify  Před 2 lety +341

    CORRECTIONS: Expand this comment to see corrections.
    CONTENTS
    0:00 What is database normalization?
    3:55 First Normal Form (1NF)
    10:24 Second Normal Form (2NF)
    16:08 Third Normal Form (3NF)
    20:29 Fourth Normal Form (4NF)
    23:47 Fifth Normal Form (5NF)
    26:41 Summary and review
    *** CORRECTIONS ***
    In the Fourth Normal Form (4NF) section, at 23:27 the primary key for the Model_Colors_Available table should appear as {Model, Color}; the primary key for the Model_Styles_Available table should appear as {Model, Style}. Also, the video's informal definition of 4NF - which states that multivalued dependencies on a non-key aren't allowed - is a little too simplistic. I should have said that what's forbidden are "non-trivial" multivalued dependencies on a non-key. "Trivial" multivalued dependencies on a non-key - like Model ->> Color in the case of the Model_Colors_Available table - are fine! A multivalued dependency is considered trivial if the attribute(s) on the left side of the arrow (in this case, Model) and the attribute(s) on the right side of the arrow (in this case, Color) together make up all the attributes in the table.
    In the First Normal Form (1NF) section, at 4:42, since the column heading in the query results is Beatle, the query itself should have been shown as selecting Beatle. (The query is erroneously shown as selecting "Member_Name".)
    In the Fifth Normal Form (5NF) section, the summary at 26:16 says that a table (call it T) violates 5NF if it can be "logically thought of as being the result of joining some other tables together." I should have clarified that it if those "other tables" all have the same key as the table T, then it doesn't count as a violation! For example, the fact that a table with columns ( Product_ID (PK), Product_Name ) joins to a table with columns ( Product_ID (PK), Product_Color ) to yield a table PRODUCT which has columns ( Product_ID (PK), Product_Name, Product_Color ) doesn't mean that PRODUCT violates 5NF. More generally, I now think there was a little too much looseness in my presentation of 5NF; I'll do a standalone 5NF video at some point that describes 5NF in a less question-begging way. The same goes for 4NF!

    • @ScorpioHR
      @ScorpioHR Před rokem +9

      4:42
      You're selecting "Member_Name" column, but in the result drawing the column name is "Beatle".

    • @decomplexify
      @decomplexify  Před rokem +16

      @@ScorpioHR You're the first person who's noticed that! Thanks, I'll include a correction in the pinned comment.

    • @thomasst.martin2522
      @thomasst.martin2522 Před rokem +2

      How come you didn’t include Boyce-Codd between 3rd and 4th?

    • @decomplexify
      @decomplexify  Před rokem +7

      @@thomasst.martin2522 Hi, I talked about it at 19:11 and 27:40. Also I did an entire video on Boyce-Codd Normal Form: czcams.com/video/VWnKUKH4tLg/video.html

    • @ayporos
      @ayporos Před rokem +1

      I agree that going up to 5th normal form is a good decision. 6NF is just bonkers and aside from very specific use cases can be ignored.
      Btw, does the following fall under 5NF or not?:
      Your skill rating value for players went from 1 to 9, but any type of numeric field used would allow for either less or more distinct values to be entered.
      '1 to 9' is a data set as well, and should have been captured in a separate table Skill_Levels. Does that step fall under 5NF? I feel it does. It's data, it should be in a table, not 'hard baked' into code.

  • @Vueko-jt2qi
    @Vueko-jt2qi Před 2 lety +874

    this is the clearest explanation about database normalization so far. You have my gratitude

    • @austineverett2384
      @austineverett2384 Před rokem +6

      This guys is great, I wish he had more videos

    • @ThunderAppeal
      @ThunderAppeal Před rokem

      If you needed a stupid video on yutube to explain a complex topic you were an idiot to start and nothing will help you.

    • @kolynzb
      @kolynzb Před rokem +2

      😮this guys explanation is amazing

    • @haicheurzakaria5916
      @haicheurzakaria5916 Před měsícem

      bro did a resume of more then 3 years of me studying databases xD university programs are trash fr

  • @nuiben7579
    @nuiben7579 Před rokem +676

    Sometimes I hear explanations such as this and wonder how other people have such a difficult time expressing the same idea. Yours is so concise and well broken down, avoiding convoluted terms and making good use of analogies. Thank you Decomplexify.

    • @decomplexify
      @decomplexify  Před rokem +78

      Thanks, I appreciate that. I was doing everything I could to make it simple! Because it is simple (even if it often gets taught in a way that obscures the simplicity).

    • @MrAbhithepandey
      @MrAbhithepandey Před rokem +2

      @@decomplexify This is an excellent video. Thanks.

    • @WolfrostWasTaken
      @WolfrostWasTaken Před 11 měsíci +6

      It's usually because the people explaining it didn't properly learn it themselves. The example used in this video ergonomically follows you on internalizing concepts that are purely theoretical. This is why I love practice so much.

    • @wirotep.1210
      @wirotep.1210 Před 10 měsíci

      Totally agreed!

    • @timMathsHelp
      @timMathsHelp Před 8 měsíci +1

      hard to call the video concise when he brings up atleast 1381938 different analogies throught the video

  • @adamesd3699
    @adamesd3699 Před 10 měsíci +205

    I’ve been building databases for over 20 years and this is one of the simplest and clearest explanations I’ve ever seen.

    • @Hubertoom
      @Hubertoom Před 6 měsíci +2

      Why did you watch this if you have been working for 20 years with DB? 😄

    • @adamesd3699
      @adamesd3699 Před 6 měsíci +15

      @@HubertoomIt’s even worse than that. I’m re-enjoying cartoons I last watched as a child. 🤓

    • @Hubertoom
      @Hubertoom Před 6 měsíci +2

      @@adamesd3699 I think we misunderstood. It is fine, but my point was that after 20 years of experience, this kind of knowledge looks quite straightforward 🤠

    • @siimkask14
      @siimkask14 Před 4 měsíci

      @@Hubertoomits because hes lying

    • @DrCaesarsPalace_MD
      @DrCaesarsPalace_MD Před 4 měsíci +7

      @@siimkask14 don't need that negativity son. Maybe they were trying to find good ways to explain the concept, used to working to 3NF but not 5NF, who knows. Not everyone is out to get you mate.

  • @isabelleseah8567
    @isabelleseah8567 Před rokem +27

    You summarized 2 whole days worth of lectures into 20 mins, thank you!!!

  • @El-Burrito
    @El-Burrito Před rokem +144

    A lot of these normalisation forms once you've learnt them just seem so natural that it's hard to imagine not doing them.

    • @pedrolopez8057
      @pedrolopez8057 Před rokem +9

      After working with databases for a short period time and looking at some running examples I was at least at the 4th NF level. After I explored the topic 5th NF now seems natural. I often wonder why people struggle with the idea of data independence.

    • @imblackmagic1209
      @imblackmagic1209 Před rokem +13

      i didn't even know these concepts existed, and somehow my DB designs were at least 3NF... i don't understand why people don't sit down to think about the use cases of their designs, or try them with dummy data

    • @adityanair5527
      @adityanair5527 Před rokem

      ​​@@Mr0rris0 what is blud talking bout

    • @AlbertoSimeoni-wi9wj
      @AlbertoSimeoni-wi9wj Před 7 měsíci +1

      And in modern erp normal forms are not even take into account....
      Columnar + in memory + compressed...to exploit performances they are less than 3nf

    • @fabio.1
      @fabio.1 Před 6 měsíci

      ​@@AlbertoSimeoni-wi9wj👀🤔

  • @saikatraj
    @saikatraj Před rokem +45

    What a gem you are!! 5 normalization rules in under 30 minutes, so clearly. Just WoW! Thanks a lot for making me understand all of it. You deserve 2.24million subscribers not 22.4K.

  • @NickPapakis
    @NickPapakis Před měsícem +4

    Working with DBs 25 years (since SQL6.5). This is one of the most complete and clear explanation I have seen

  • @jorgensigvardsson9749
    @jorgensigvardsson9749 Před rokem +117

    I've used SQL databases for longer than a quarter century. Even longer ago, I studied this as part of my CS education. I saw this video in my stream just now, and thought I'd refresh myself. I was very pleased as it confirmed what I've been doing in my professional career. I guess something stuck deep inside my neurons so many years ago!
    Excellent video, very well explained with very good examples! Great work!

    • @decomplexify
      @decomplexify  Před rokem +9

      Thank you, I appreciate that!

    • @javabeanz8549
      @javabeanz8549 Před rokem

      I took some courses that long ago, but have really only been working with SQL for 16 years. And yes, I have apparently learned it well, as I key everything, to link across tables. Like Joe is Person ID 7, I can add Person ID 7 to records in other tables that I want associated with Joe. Join on key Person ID to match them up.

    • @MartinHusak
      @MartinHusak Před 4 měsíci

      Have the same experience. I was taught this at Uni long time ago. I though I forgot it but still intuitivelly respecting up to 4thNF all principles. Sometimes even 5th.
      Great video. Thank you.

  • @vylonygo7410
    @vylonygo7410 Před 8 měsíci +10

    Someone give this guy a teacher's award - One of the best breakdowns of a difficult subject I have seen

  • @Fenrir99alias
    @Fenrir99alias Před rokem +14

    its honestly criminal that you dont have more subs. i wish I could find a video this well done on every topic I struggle with

  • @martyc5674
    @martyc5674 Před rokem +20

    Stuff I’ve known for years, but never explained so concisely - kudos to you great work 👌

  • @LapinAleph
    @LapinAleph Před rokem +4

    That's without a doubt the clearest explanation I ever heard about database normalisation forms. Your videos are incredibly good. TY

  • @shiladitya7739
    @shiladitya7739 Před 9 měsíci +3

    There does not exist a better video that explains normalization with such clarity and simplicity.

  • @pefington
    @pefington Před rokem +4

    Thank you!
    You obviously have a knack for explaining things.
    The animation is really nice and helps with the subject. Can't wait for more.

  • @davidcopeland5789
    @davidcopeland5789 Před rokem +1

    I don't know how many books and articles I've read that don't explain this, but you did. Keep up the good work!

  • @gingeas
    @gingeas Před 4 dny

    I scoured so many database normalization videos in my undergraduate 4yr ago and none of them come near this one. My college self is finally happy

  • @west9087
    @west9087 Před rokem +4

    By far the best explanation on Normalization I have been able to find! Keep up the great work!!

  • @ShadowHakaiSuminoe
    @ShadowHakaiSuminoe Před rokem +73

    This was immensely useful as the rigorous, mathematical explanation given to me in university wasn't clear enough. Thank you! You've got a new subscriber, and I hope I get to enjoy your future content :)

  • @mrv3173
    @mrv3173 Před 2 lety +2

    Wow. Of all the videos about database relationships in youtube. Yours is the only one that is complete in details. Thank you.

  • @mingyenhung5272
    @mingyenhung5272 Před rokem +2

    Nice work Decomplexify!
    Easy and clear, one of the best explanations that I have ever watched.

  • @user-hg4oe7ep5t
    @user-hg4oe7ep5t Před rokem +3

    One of the more clear normalization explanations here! Good job!

  • @ruvvier1509
    @ruvvier1509 Před rokem +5

    I had to read a chapter on normalizations for my database class and I was just lost with the usage of its jargons. This video helped it alot! Simple and thorough.

  • @Doughy_in_the_Middle
    @Doughy_in_the_Middle Před rokem +2

    A very long time ago (1996ish) the two guys who did all of the non-AS400 report writing both quit at our company. They were friends of mine, and both told their managers that I at least knew how to code in BASIC, and as all the operations reporting was in VB (mostly excel, some Access), I replaced both. I used their old Excel-based reporting system for awhile, but HEAVILY gravitated to Access (we weren't IT, so "When all you have is a hammer..."). Seeing all this laid out like this is kind of refreshing to see. Normalization -- self-taught as I was -- eventually got so ingrained me that I randomly build databases to organize things at home. Thanks for this. It's good stuff.

  • @johnlukespeight
    @johnlukespeight Před 2 lety +16

    Concise, well illustrated, yet densely well organized video structure. 10/10 Thank you will repost!

  • @diodesu
    @diodesu Před rokem +7

    Subscribed! I'm currently studying this subject because I've an exam in 2 days but, I've decided that I will continue watching your videos. The way you explain things is out of the ordinary. Thank you!

  • @nNiceDreamsMadeTrue
    @nNiceDreamsMadeTrue Před rokem +2

    perfect pacing, no bloat. Highly appreciated; intro's and padding are the bane of self learners through youtube

  • @djdocstrange
    @djdocstrange Před 6 měsíci +2

    Definitely the best explanation ive seen for these normal forms!!! I learned this in school and after a while I forget the rules, I just know whats needed in a table. I'm glad to take this refresher and take note of them. I find after designing many tables, these rules tend to happen organically because if not you run into too many problems.

  • @roman_mf
    @roman_mf Před rokem +2

    This is EXCELLENT! So easy understand without unnecessary mathematical rigor for us mortals ;-). Thank you Mr. Decomplexify for those awesome explanations.

  • @ibrahimkoz1983
    @ibrahimkoz1983 Před 2 lety +4

    You're great, keep up doing the amazing stuff. You'll be getting what you deserve ultimately.

  • @alexmercerind
    @alexmercerind Před 6 měsíci

    This has been by far the most clear, concise & practical explanation. Thanks!

  • @arp_on
    @arp_on Před rokem +2

    This has been hugely helpful! I was completely lost with Normalization but not anymore. Thank you

  • @jylpah
    @jylpah Před 10 měsíci +3

    So clear explanation. Well done. I read this long time in university, but I have long since forgot the definitions. Thankfully I have always ended up fully normalized 3NF designs since it makes intuitive sense. Having met non-normalized designs at work, the pain those caused were enormous and stalled the development (eventually bankrupting the company)… FUBAR, it was.

  • @paulbaker654
    @paulbaker654 Před rokem +14

    I remember learning this on a Systems Analysis course in 1985. Inefficient databases could have a real impact on performance whereas today poor database design can be masked by more powerful hardware.

    • @javabeanz8549
      @javabeanz8549 Před rokem

      Were you working with dBase then? I remember dBase II and dBase III being taught around that time.

  • @quinnh6038
    @quinnh6038 Před rokem +2

    You're a wonderful instructor, and there are many leaners in the the world who need you..Thank-you

  • @sunilbabu588
    @sunilbabu588 Před 4 měsíci +1

    This is a gem. Please make uploads more consistently. Thank you.

  • @gdclemo
    @gdclemo Před rokem +8

    Though not part of the normal forms, I would also add don't use something that might change as a primary key, such as player name if players are allowed to change their names. Then you have to update all the tables keyed by that player. Better to invent a player ID number, use that as key and store the (name,id) pairs in a table.

  • @Maric18
    @Maric18 Před rokem +1

    in my first proper job, the content of these 30 minutes was basically all i needed to know to be a "specialist in database design" :D

  • @ryanford516
    @ryanford516 Před rokem +1

    I really wish I were as eloquent as the creator of this brilliant video. Literally none of my questions pertaining to the subject are left unanswered. Thank you!

  • @runningrichie8882
    @runningrichie8882 Před 2 lety +6

    This is a great video! I think that a video on different keys and what they are would be really helpful as well!

    • @decomplexify
      @decomplexify  Před 2 lety +2

      Thanks! I've been working on a keys video so stay tuned for that...

  • @EricKolotyluk
    @EricKolotyluk Před rokem +7

    Excellent presentation of normalized forms. Given so much noSQL databases these days, it's nice to be reminded of data safety concerns...

  • @toni6199
    @toni6199 Před rokem +2

    Seriously, I can't thank you enough for this, the database course in my university made this look like a convoluted mess and you just explain it so simply like that

  • @GapYearProject
    @GapYearProject Před rokem +1

    The best explanation available. Normalization is so easy after watching this video, and it all makes sense. Thank you so much!

  • @tenthlegionstudios1343
    @tenthlegionstudios1343 Před 2 lety +5

    Seriously the best video explanation. Other youtube videos only cover a few cases. Or don't explain each normalization clearly. Great videos. I subscribed. I am a front-end dev expanding my skillset to more full stack. Databases are my weakest area. Really appreciate the in depth well thought out content!

    • @tenthlegionstudios1343
      @tenthlegionstudios1343 Před 2 lety +1

      Topics I am interested in: Underlying mechanisms behind database data storage (B+ trees, LSM SSTables Bloom Filters, compaction, write ahead logs, error recovery, etc...), data modeling in noSQL DBs (Is there anything like normalization / best practices for GraphDBs, blob storage, etc... ), denormalization and examples, data processing pipeline, and when to chose each database type for a project. General DB knowledge is always appreciated as well. If you are looking for video ideas outside of the DB world, then I have been interested in pattern matching algorithms and data structures like aho-corasick automaton, Suffix trees with linear time construction (specifically the construction in linear time). Thanks!

    • @decomplexify
      @decomplexify  Před rokem +3

      @@tenthlegionstudios1343 Thanks, I really appreciate the comment, and out of the various topics you've mentioned, the one I'm most qualified to talk about is "denormalization and examples" - this is something I've been meaning to do a video about for some time. Stay tuned!

  • @YoukaiFire
    @YoukaiFire Před 2 lety +17

    I've done the LinkedIn Learning videos my university provided, nothing.
    I've powered through the reading materials left and right, still nothing.
    I've tried other CZcams videos, and surprise, still nothing.
    Your video somehow makes it make sense. I've been struggling with these concepts for 2 weeks now. Thank you for putting it in basic terms!

    • @decomplexify
      @decomplexify  Před 2 lety +13

      I'm so glad my video helped you. When I made the video I was very conscious of wanting to make the explanations as simple as they could possibly be, so that anybody could understand them, so I tried very hard to do just that. For me that's what all teaching should strive for. It's really gratifying to read that the video has succeeded in giving you a good understanding of these concepts.

  • @tengma1020
    @tengma1020 Před rokem

    "I hope you find this video helpful" - I find this video way too helpful. Thank you so much for making things so clear to understand. great job.

  • @javaughnfrancis1799
    @javaughnfrancis1799 Před 3 měsíci

    Where was this explanation when i needed it in school! This is a really awesome description and it is timeless

  • @DaveTheMave
    @DaveTheMave Před 2 lety +3

    Bro.. thanks! You made it so simple.

  • @dallen521
    @dallen521 Před 9 měsíci

    What memories. It’s nearly 30 years since I looked at normalisation. This video bought back many memories.

  • @quomodo6346
    @quomodo6346 Před 2 lety +6

    Well done mate! Your explanations were absolutely brilliant!! Keep up the good work and Thank you !!

  • @sergiocastellani9823
    @sergiocastellani9823 Před 7 měsíci +1

    using this videos for university... and it's clear htat you know the subject to perfection, otherwise you wouldnt be able to explain it so brightly clearly. Thank you very very much man.

  • @zelousfoxtrot3390
    @zelousfoxtrot3390 Před měsícem

    Well that was two weeks of lectures summed up nicely. THANK YOU!

  • @StatPharm
    @StatPharm Před 2 lety +4

    Seriously the best explanation ever ! Thanks a lot Sir. 😍

  • @geroffmilan3328
    @geroffmilan3328 Před rokem +9

    This is awesome.
    Much appreciated 🙏
    Edit: would love to see a similar decomplexify centred on the models used in reports created via data analytics?
    How to approach creating the optimum data set in terms of structure, such as a star model versus other options whose names I haven't yet looked up 😊

  • @jakemeyer8188
    @jakemeyer8188 Před 7 dny

    This video is so good, it's officially labeled as "bad-ass", and is 3NF compliant.

  • @manesvenom123
    @manesvenom123 Před 3 měsíci

    The most concise explanation of Database Normalization Form ever read!

  • @jam-trousers
    @jam-trousers Před rokem +9

    I’ve been a database engineer for 25 years and this stuff is still super useful. Thank you

    • @2greenify
      @2greenify Před rokem +2

      Serious? I hope that was a joke.

    • @jam-trousers
      @jam-trousers Před rokem

      @@2greenify no joke. Sorry, genius

  • @beck5429
    @beck5429 Před 2 lety +9

    Really awesome video. I'm taking a class on relational database design and the lecture I attended on this topic was very convoluted. Your presentation and examples cleared everything up for me, thank you.

    • @decomplexify
      @decomplexify  Před 2 lety +5

      My pleasure. It's one of those topics that somehow lends itself to poor and convoluted explanations, so I'm glad if I succeeded in getting it across clearly.

  • @user-zn9fk2rk6x
    @user-zn9fk2rk6x Před 5 měsíci

    The best explanation of DB normalization that I was able to find on CZcams. Thanks a lot man!

  • @LeoOrientis
    @LeoOrientis Před rokem +4

    Firstly, this is a delightful and clear explanation - thank you!
    It makes me nostalgic for the time when I would regularly hear such formalisms discussed in corporate IT settings.
    One of the difficulties you must encounter when teaching these concepts in the current era is that contemporary thinking in software engineering encourages designers to think of databases as _merely_ "storage" or "persistence" for an individual application. An implementation detail, trivial in to the real work of the system.
    Whereas Ted Codd and Chris Date conceived of the database as the information system itself. It would enforce universal logic and consistency. It was the main event. Applications that made use of the data would come and go. And they would adapt themselves to its schema, and its declared and transparent logic. (Transparent in its original sense, not in the way it has come to means its opposite - a black box.) Codd didn't predict a world in which each application had its own database, and there was money to be made as an "enterprise data integration and migration consultant".
    My career thus far has brought me to the disheartening conclusion that a really useful information system in an organization of any size or scale takes so much time, effort, and co-ordination to build (and evolve) that before it has reached even a third of its potential, there are already multiple generational conflicts around its intent and purpose.

    • @decomplexify
      @decomplexify  Před rokem +1

      I glad you liked the explanation; and thank you for those astute, historically-informed observations, which I very much agree with! I regard a database as a kind of template for expressing meanings. A lot of other people don't see it that way at all: they see it as a sort of parking lot for data. & as far as your disheartening conclusion goes, I can't really disagree with it. There's always going to be a drive towards a sweeping, unified information system (or an EDW) - because people who rely on information really could benefit from one of those - but in my career to date I haven't yet seen such a thing work out in the way people hoped and imagined it would.

    • @LeoOrientis
      @LeoOrientis Před rokem

      @@decomplexify Thanks! If I were to be a little bit less disheartening, I'd say that the potential of RDBMSes is not even close to being fully tapped. And that the difficulty is that management dreams that technology will solve all of their human problems. In reality, we have to solve the human problems first. It's only then that the technology can begin to deliver on the wonders it promised. 😁
      Thanks for doing a first-rate job at solving one of the most difficult human problems - understanding and communication!

  • @bishalsahoo8684
    @bishalsahoo8684 Před 2 lety +3

    This video actually is really very helpful. I dk why you have so less views. You deserve more.

  • @kevinwilliams8848
    @kevinwilliams8848 Před 3 měsíci

    This video is so great. I am a relatively new business analyst and have been struggling with a non-normalized legacy database that has been causing a lot of headache at my job. Can't wait to get in there and get it fixed up after watching this! Thank you Decomplexify

  • @grahamsaint3073
    @grahamsaint3073 Před rokem +2

    I've worked with Relational Databases since 1983 (when IBM released DB2) and this is one of the best and clearest explanations of normalization I've ever seen.

  • @Chenny0
    @Chenny0 Před rokem +5

    Normalization your gateway to “left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on left join on”

    • @austin4855
      @austin4855 Před 2 měsíci

      Mhm. I think it's always good to start by striving for 5NF... and then work backwards from there, denormalizing with extreme care to optimize for specific cases. I'll violate BCNF and stick an attribute in there that doesn't depend on the key, knowing it increases write complexity, if it improves read performance on a table where reads are occurring thousands of times more frequently than writes do. But I ALWAYS start by designing the fully normalized schema. In other words: sometimes DEnormalize, NEVER *fail* to normalize.

  • @runningjoke_masterstroke

    Great video! I would say the issue of repeating groups in 1NF isn't clear about the repeating group. A repeating group is more than a multivalued attribute. It is a repeating group because, in your example, the quantity and the item belong together. In the first row, player jdog21 isn't just associated with multiple quantities and multiple items. The quantity and the item are associated (e.g., 2 with amulet and 4 with ring are correct, while 4 with amulet and 2 with ring would be incorrect). A multivalued attribute should be separated into a different table, as you showed. But, if the quantity and item were not related, then a three table design would be better {(player), (player, item), (player, quantity)} so the 4NF problem isn't created. What makes it a repeating group is that the association of the first value of quantity with the first value of item, the second value of quantity with the second value of item must be maintained.

    • @aniloid3029
      @aniloid3029 Před 9 měsíci

      Thanks, I was wondering about that part!

  • @ericgarcia3231
    @ericgarcia3231 Před 2 měsíci

    Absolutely loved this video. Learned a lot about normalization, but also communication and teaching. Thank you.

  • @daniellesskis2565
    @daniellesskis2565 Před 5 měsíci

    Perfect, I learned all this stuff in high school over 20 years ago.
    After watching this everything was clear again

  • @hoanglong4911
    @hoanglong4911 Před 2 lety +9

    Best video I have seen on this topic. But just a little concern is that at 23:27 why model column can have duplicate values? Isn't it primary key?

    • @decomplexify
      @decomplexify  Před 2 lety +8

      Good spot! Sorry about that, the primary key for the Model_Colors_Available table should have been shown on that screen as {Model, Color}; the primary key for the Model_Styles_Available table should have been shown as {Model, Style}. I'll see if I can add an annotation to the video that corrects this.

  • @gdclemo
    @gdclemo Před rokem +3

    Good explanations! One criticism: I was confused what First Normal Form (INF) meant until I realised that the letter I was a digit 1. It might be better to use a font that makes these two characters more easily distinguished.

  • @ginadouglas7641
    @ginadouglas7641 Před rokem

    I was having a really hard time with this concept and this video made it all click. Thank you so much. Looking forward to your content going forward

  • @hazaragicodingacademy

    The best tutorial for a topic I have ever watched on youtube.

  • @saurabh3341
    @saurabh3341 Před rokem

    Best Video on the internet to explain Normal Forms in easiest way.. landed here after skipping many confusing videos. thank you !

  • @joshualee7002
    @joshualee7002 Před rokem +1

    Thanks for this! Like others, I'm studying for a databases exam and needed a fresh explanation of normalisation. This video helped me refine my notes and cement it more in my brain.

  • @graxxor
    @graxxor Před 5 měsíci +1

    I'm very glad to see someone able to articulate this somewhat esoteric topic so eloquently and succinctly!
    My initial foray into DB started at home on a PC with a copy of IBM's DB2 for DOS that a dad of one of my mates... ahem... acquired for me. This lead to an entire lifetime of love for and a career in databases and data integrity, starting with teaching database theory and design at my university as a postgrad to finally running my own IT school where I teach database theory to the advanced highschoolers.
    Educative content such as this is so valuable to those coming after us... Keep up the top notch work!

    • @Cobalt985
      @Cobalt985 Před 2 měsíci

      Not that esoteric, I'm learning this in my first year CIT diploma. It's extremely frustrating that the same problem of all other STEM field and academia in general is here too, with such esoteric language and confusing explanations, but the internet makes that a much easier thing to combat nowadays at least.

  • @ockertvisser8770
    @ockertvisser8770 Před rokem +2

    This is a phenomenal explanation. So simple and direct.

  • @LeetStack
    @LeetStack Před 4 dny

    it is so great to finally understand what and why I was doing what I was doing, while following youtubers who don't explain anything.

  • @yangfantan2247
    @yangfantan2247 Před měsícem

    beautiful explanation! very clear and elegant, cut to the point

  • @huthaifamuayyad3491
    @huthaifamuayyad3491 Před 8 dny

    Very nice explanation and delivery of thoughts. Looking forward to more videos like this, explaining basic but important software principles.

  • @alreadytakenindeed
    @alreadytakenindeed Před rokem +1

    Really clean and easy to grasp content. Great work!

  • @Johnzai001
    @Johnzai001 Před 2 měsíci

    Thanks for this. You have given me a way to fix many problems at work. Inspiring!

  • @edwardduda4222
    @edwardduda4222 Před dnem

    So much better than the explanation given in my Database Systems class. They explained everything with alpha's and beta's in set notation. Thank you for this!

  • @abigiyatadesse2672
    @abigiyatadesse2672 Před 2 měsíci

    Thank you for this straightforward and informative video!

  • @adamg2491
    @adamg2491 Před 4 měsíci +1

    In a few years' time this video is bound to have milions of views. Congratulations on such an amazing (and simple) explanation!

  • @Walter_
    @Walter_ Před 11 měsíci +1

    This video helped me solve the constant urge to slap a json list in a database whemever i have a list of things (inventory example)
    Thanks!!

  • @esra_erimez
    @esra_erimez Před rokem

    The importance of this video cannot be overstated. Well done.

  • @user-dx4xv3pm5p
    @user-dx4xv3pm5p Před měsícem

    This is the best video I have came up so far on normalization

  • @babatundeoladokun3582
    @babatundeoladokun3582 Před 6 měsíci

    This is excellent! Explains it absolutely well. Keep up the good work!

  • @ceciliedanbolt8109
    @ceciliedanbolt8109 Před rokem +1

    I'm so happy I found your videos about normalization. I've been struggling to understand the topics really and I have an exam in database in a couple of days and after I saw your video it made so sense. Thank you for making this videoes :D

  • @ayyoubkasmi3871
    @ayyoubkasmi3871 Před rokem

    Elegant and simple! I love the way you do it. Keep it up!

  • @huybv1998
    @huybv1998 Před 2 lety +1

    Man, i wish this video had been uploaded around 6 years ago, at the time when i was in second year with shitty 3-hour lecture about normalization. This is the clearest explanation I've ever seen so far on youtube

    • @decomplexify
      @decomplexify  Před 2 lety

      There are too many bad explanations out there, which is why I figured it was worth putting in the effort to come up with a good one. Wish I'd been there for you 6 years ago but, well - better late than never.

  • @lordstevenson9619
    @lordstevenson9619 Před 2 lety

    This is a very clear explanation, you’ve earned a sub.
    Can’t believe you don’t have more subscribers.

  • @A1commentary
    @A1commentary Před 8 měsíci

    Made it easy to understand the visuals helped a ton!

  • @shrek769
    @shrek769 Před rokem

    Dude this video is amazing!!!! I love your channel!

  • @charanvantijn541
    @charanvantijn541 Před rokem

    Best Normalization explanation I have ever seen. Thanks!

  • @corymills9171
    @corymills9171 Před rokem

    Damn. This is an impressively approachable and brief explanation.

  • @user-zh2oz9fe4m
    @user-zh2oz9fe4m Před 9 měsíci

    That is a clear explanation! It helped me understand DB normalization. Thanks a bunch!

  • @yonasfanta3560
    @yonasfanta3560 Před 7 měsíci

    damn dude this enlightening, not only as a "Normalization" course but also as a "RDBMS" course, thanks a lot!

  • @diamondalaska6434
    @diamondalaska6434 Před měsícem

    bro is literally inconceivably awesome

  • @maria-rv7fk
    @maria-rv7fk Před 10 dny

    THANK YOU! You explain this in a way that is practical and easy to follow. I much prefer this method of learning (visually and with examples) to memorizing a bunch of formal definitions. I understand learning about theory is good, but to really GET it I think you need someone to explain concepts like you do.

  • @SreenikethanI
    @SreenikethanI Před 2 měsíci

    Your "real world examples" seriously helped prove your point, because my uni reference material has similar-ish theory as you, but the examples are absolutely bad in them... your video seriously clears up a lot!