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

แชร์
ฝัง
  • เผยแพร่เมื่อ 20 พ.ย. 2024

ความคิดเห็น • 1.2K

  • @decomplexify
    @decomplexify  3 ปีที่แล้ว +433

    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 2 ปีที่แล้ว +11

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

    • @decomplexify
      @decomplexify  2 ปีที่แล้ว +20

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

    • @thomasst.martin2522
      @thomasst.martin2522 2 ปีที่แล้ว +3

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

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

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

    • @ayporos
      @ayporos 2 ปีที่แล้ว +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.

  • @NickPapakis
    @NickPapakis 7 หลายเดือนก่อน +60

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

  • @Maric18
    @Maric18 2 ปีที่แล้ว +53

    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

  • @nuiben7579
    @nuiben7579 2 ปีที่แล้ว +930

    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  2 ปีที่แล้ว +107

      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 ปีที่แล้ว +3

      @@decomplexify This is an excellent video. Thanks.

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

      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 ปีที่แล้ว

      Totally agreed!

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

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

  • @adamesd3699
    @adamesd3699 ปีที่แล้ว +310

    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 11 หลายเดือนก่อน +5

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

    • @adamesd3699
      @adamesd3699 11 หลายเดือนก่อน +21

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

    • @Hubertoom
      @Hubertoom 11 หลายเดือนก่อน +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 9 หลายเดือนก่อน +1

      @@Hubertoomits because hes lying

    • @DrCaesarsPalace_MD
      @DrCaesarsPalace_MD 9 หลายเดือนก่อน +10

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

  • @Vueko-jt2qi
    @Vueko-jt2qi 2 ปีที่แล้ว +1023

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

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

      This guys is great, I wish he had more videos

    • @ThunderAppeal
      @ThunderAppeal ปีที่แล้ว

      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 ปีที่แล้ว +2

      😮this guys explanation is amazing

    • @haicheurzakaria5916
      @haicheurzakaria5916 7 หลายเดือนก่อน +2

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

  • @isabelleseah8567
    @isabelleseah8567 ปีที่แล้ว +50

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

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

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

  • @saikatraj
    @saikatraj ปีที่แล้ว +65

    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.

  • @jorgensigvardsson9749
    @jorgensigvardsson9749 2 ปีที่แล้ว +137

    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  2 ปีที่แล้ว +10

      Thank you, I appreciate that!

    • @javabeanz8549
      @javabeanz8549 ปีที่แล้ว

      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 10 หลายเดือนก่อน +1

      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.

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

      I have a similar story, as well. I don't actually ever remember learning the _terminology_ (let alone an explicit enumeration of the definitions) of these various normal forms, but I did develop (from my original SQL class, 30+ years ago? Or from picking it up on the job? Some of each? I don't remember) an intuitive sense for all the _concepts_ here... and I think I do alright at designing well-normalized databases, on the occasions when I have reason to do so... but this'll still help (in particular, knowing the terminology!)

  • @El-Burrito
    @El-Burrito ปีที่แล้ว +201

    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 ปีที่แล้ว +13

      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 ปีที่แล้ว +18

      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 ปีที่แล้ว

      ​​@@Mr0rris0 what is blud talking bout

    • @AlbertoSimeoni-wi9wj
      @AlbertoSimeoni-wi9wj ปีที่แล้ว +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 11 หลายเดือนก่อน

      ​@@AlbertoSimeoni-wi9wj👀🤔

  • @troygrant5270
    @troygrant5270 7 วันที่ผ่านมา +3

    This is the best explanation I have seen here. Salute, sir; this was an awesome teaching lesson. i want others to like my comment so each time i will be reminded to come back right here and watch it over and over. cheers

  • @adarshdiwakar9466
    @adarshdiwakar9466 10 วันที่ผ่านมา +2

    in all the other videos i have seen on normalization, they are only using complex terms and there is no explanation.
    THIS ONE IS THE BEST VIDEO ON NORMALIZATION.
    you earned a subscriber.

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

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

  • @Doughy_in_the_Middle
    @Doughy_in_the_Middle 2 ปีที่แล้ว +3

    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.

  • @martyc5674
    @martyc5674 2 ปีที่แล้ว +30

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

  • @Fenrir99alias
    @Fenrir99alias 2 ปีที่แล้ว +18

    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

  • @sergiocastellani9823
    @sergiocastellani9823 ปีที่แล้ว +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.

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

    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.

  • @diodesu
    @diodesu ปีที่แล้ว +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 2 ปีที่แล้ว +2

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

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

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

  • @grahamsaint3073
    @grahamsaint3073 ปีที่แล้ว +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.

    • @houdamaarfi
      @houdamaarfi 10 หลายเดือนก่อน

      how is that even possible ?

  • @toni6199
    @toni6199 ปีที่แล้ว +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

  • @tengma1020
    @tengma1020 ปีที่แล้ว

    "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.

  • @YoukaiFire
    @YoukaiFire 2 ปีที่แล้ว +21

    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 TH-cam 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  2 ปีที่แล้ว +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.

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

    i have been working in Dbs for more than 789 years , this is the best explanation i have ever seen

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

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

  • @postmodernist1848
    @postmodernist1848 3 หลายเดือนก่อน

    I thought I would need to wait several semesters until my uni course on databases to learn about normal forms, because I didn't find a good source online, but here you are - a great and easy to understand explanation to get me started. Excellent.

  • @CalypsoAureus
    @CalypsoAureus 2 ปีที่แล้ว +76

    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 :)

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

    I watched this show because I enjoy watching people use database programs and documents that could be used in microcomputers. I have been using Microsoft Access since 2002 with my first microcomputer and learned it all by myself. This show explains the acts of normalization and non-normalization concise, precise, and directly to the point that even a dumb man could understand this show. I will continue to use my relational Microsoft Access [2021] database, but the normalization lessons will work [nicely] in planning a database file.

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

    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.

  • @ryanford516
    @ryanford516 2 ปีที่แล้ว +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!

  • @jylpah
    @jylpah ปีที่แล้ว +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.

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

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

  • @jam-trousers
    @jam-trousers 2 ปีที่แล้ว +10

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

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

      Serious? I hope that was a joke.

    • @jam-trousers
      @jam-trousers ปีที่แล้ว

      @@2greenify no joke. Sorry, genius

  • @prashant0690
    @prashant0690 14 วันที่ผ่านมา

    Exceptionally well explained with real world scenarios and minimum jargon. Hats off.

  • @beck5429
    @beck5429 2 ปีที่แล้ว +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  2 ปีที่แล้ว +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.

  • @davidcopeland5789
    @davidcopeland5789 ปีที่แล้ว +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!

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

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

  • @dallen521
    @dallen521 ปีที่แล้ว

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

  • @sunilbabu588
    @sunilbabu588 9 หลายเดือนก่อน +1

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

  • @LeoOrientis
    @LeoOrientis 2 ปีที่แล้ว +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  2 ปีที่แล้ว +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 2 ปีที่แล้ว

      @@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!

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

    One of the best session on normalization I have seen. To the point with practical example. Thank you for this video. 🙏

  • @johnlukespeight
    @johnlukespeight 2 ปีที่แล้ว +17

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

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

    I find it useful to review this from time to time (super useful video; thanks!)... and yet, don't feel a need to go through the whole thing when I do, so, here are the summaries of the various forms -- for my own sake, and/or anyone else who might find this helpful:
    1st NF: 10:00, 26:58; 2nd NF: 12:56, 27:16; 3rd NF: 18:47, 27:25 (related: Boyce-Codd Normal Form: 19:12, 27:37); 4th NF: 23:03, 27:49; 5th NF: 26:16, 28:00.

  • @tenthlegionstudios1343
    @tenthlegionstudios1343 2 ปีที่แล้ว +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 2 ปีที่แล้ว +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  2 ปีที่แล้ว +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!

  • @djdocstrange
    @djdocstrange 11 หลายเดือนก่อน +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.

  • @paulbaker654
    @paulbaker654 2 ปีที่แล้ว +15

    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 ปีที่แล้ว

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

  • @huybv1998
    @huybv1998 2 ปีที่แล้ว +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  2 ปีที่แล้ว

      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.

  • @EricKolotyluk
    @EricKolotyluk 2 ปีที่แล้ว +7

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

  • @alisavictory2969
    @alisavictory2969 3 หลายเดือนก่อน

    This was so helpful! Broke down this topic without using too much technical jargon, had great examples, great explanations and nice drawings! Thank you so, so much!!! I like how you gave a rule-of-thumb for each 1NF, 2NF, 3NF, 4NF, 5NF and the summary! Superb video!

  • @runningrichie8882
    @runningrichie8882 2 ปีที่แล้ว +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  2 ปีที่แล้ว +2

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

  • @adamg2491
    @adamg2491 9 หลายเดือนก่อน +2

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

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

      7 months later and almost 2mm views and growing...

  • @pefington
    @pefington 2 ปีที่แล้ว +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.

  • @daniellesskis2565
    @daniellesskis2565 11 หลายเดือนก่อน

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

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

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

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

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

  • @RM-xr8lq
    @RM-xr8lq 5 หลายเดือนก่อน +176

    dam my db already failing 1NF

    • @CrushedAsian255
      @CrushedAsian255 5 หลายเดือนก่อน +17

      At least you’ve got a schema, I can’t keep changing schema every day

    • @ytouate
      @ytouate 5 หลายเดือนก่อน +2

      😂

    • @7DYNAMIN
      @7DYNAMIN 4 หลายเดือนก่อน

      you monkey !

    • @amir-ali8850
      @amir-ali8850 4 หลายเดือนก่อน +2

      Bro u a real one 😂

    • @munteanionut3993
      @munteanionut3993 4 หลายเดือนก่อน +2

      🤣🤣🤣🤣🤣🤣

  • @edwardduda4222
    @edwardduda4222 5 หลายเดือนก่อน +1

    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!

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

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

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

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

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

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

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

    The whole thing made so little sense to me when i learned it from the books and i spent hours. So i intiutively chose „break down to avoid redundancy“ style in so many cases. Now, with 25 min video i finally learned it properly. Thank you :)

  • @DaveTheMave
    @DaveTheMave 2 ปีที่แล้ว +3

    Bro.. thanks! You made it so simple.

  • @gingeas
    @gingeas 5 หลายเดือนก่อน +1

    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

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

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

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

    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

  • @geroffmilan3328
    @geroffmilan3328 2 ปีที่แล้ว +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 😊

  • @alexmercerind
    @alexmercerind 11 หลายเดือนก่อน

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

  • @bishalsahoo8684
    @bishalsahoo8684 2 ปีที่แล้ว +3

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

  • @LeetStack
    @LeetStack 5 หลายเดือนก่อน

    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.

  • @quomodo6346
    @quomodo6346 2 ปีที่แล้ว +6

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

  • @AqgvP07r-hq3vu
    @AqgvP07r-hq3vu ปีที่แล้ว

    There are so many blog posts trying to explain this concept, and yet nothing made me understand which frustrates me so much. This one is the silver lining to me.

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

    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 ปีที่แล้ว

      Thanks, I was wondering about that part!

  • @jannatulmahjabinfaiza6573
    @jannatulmahjabinfaiza6573 4 หลายเดือนก่อน

    i think this is the best explanation of database normalization. especially for the beginners like me. i saw so many tutorials and read a chapter of this topic but couldn't be able to get this steps so easily. but this tutorial helped me to understand those steps so smoothly.

  • @Chenny0
    @Chenny0 ปีที่แล้ว +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 8 หลายเดือนก่อน

      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.

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

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

  • @hoanglong4911
    @hoanglong4911 2 ปีที่แล้ว +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  2 ปีที่แล้ว +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.

  • @joshualee7002
    @joshualee7002 ปีที่แล้ว +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.

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

    0:11 And what bad things can happen if you do too much?

    • @decomplexify
      @decomplexify  ปีที่แล้ว

      Watch my Denormalization video if you want some insight into cases where relaxing the normalization requirement might be desirable: th-cam.com/video/4bTq0GdSeQs/w-d-xo.html

    • @Mike-dt1yg
      @Mike-dt1yg 2 หลายเดือนก่อน

      The database becomes a pain to work with. SQL queries become more complex.

  • @graxxor
    @graxxor 10 หลายเดือนก่อน +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 8 หลายเดือนก่อน

      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.

  • @gdclemo
    @gdclemo ปีที่แล้ว +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.

  • @Walter_
    @Walter_ ปีที่แล้ว +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!!

  • @ahnov6670
    @ahnov6670 4 หลายเดือนก่อน +4

    imagine yapping for 8 hours about this just to be outplayed by a random guy on youtube in 28 minutes

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

    This was the most beautifully executed normalization explanation. Thank you for doing the necessary abstraction for us.

  • @XhaxhiThoma
    @XhaxhiThoma 5 หลายเดือนก่อน

    Heroes don't need to have some magic superpower, explaining to others this topic and other topics clearly is a great superpower to have. I don't know how to reward you enough for the explanations!

  • @mariajosepav
    @mariajosepav 5 หลายเดือนก่อน

    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.

  • @ZuofuLi-h9s
    @ZuofuLi-h9s 23 วันที่ผ่านมา +1

    You did a great job, it's very clear. Now look back at the university powerpoint, I still don't understand what the prof said.

  • @manesvenom123
    @manesvenom123 8 หลายเดือนก่อน

    The most concise explanation of Database Normalization Form ever read!

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

    I have spent half afternoon studying the DB normal forms, and wish I had found this video before all the others I have watched. This was in fact the only worth watching, so far.

  • @akash-uy3uh
    @akash-uy3uh 2 ปีที่แล้ว

    by far the best video on TH-cam on normalization , I'm writing this on my day of exam and you have made my life easy hats off to you !

    • @decomplexify
      @decomplexify  2 ปีที่แล้ว +1

      Thank you! Glad I could help.

  • @lihantang
    @lihantang 11 หลายเดือนก่อน +1

    You are the best teacher. Thank you so much!

  • @torpedoe1936
    @torpedoe1936 4 หลายเดือนก่อน +1

    This is so concise and precise. Absolute goldmine!

  • @ericgarcia3231
    @ericgarcia3231 7 หลายเดือนก่อน

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

  • @hazaragicodingacademy
    @hazaragicodingacademy ปีที่แล้ว

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

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

    Thank you for this. I leant relational database practically (using tools like Airtable etc) but never leant it theoretically. This is is so easy explanation who wants to know the basics.

  • @eakzor
    @eakzor 11 หลายเดือนก่อน

    I took the mandatory database course as part of my CS degree I didn't like one minute of it. What a the course failed to explain - in a sensible way - over 10 lectures, on how to model your tables and the relations between attributes you've summarized perfectly in 30 minutes. Oh how I wished this video was made 10 years ago. Great stuff

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

    This is phenomenally well explained and invaluable - this has made my life SO much easier! Thank you!

    • @decomplexify
      @decomplexify  ปีที่แล้ว

      You're welcome - I'm glad it's helped!

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

    you are amazing English wasn't my first language so when in university they teach with big fancy words it gets me confused and I feel stupid for not understanding but when you explain it in non formal definitions it makes it simple and easy to understand thanks

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

      Thanks so much for your comment. I'm really happy that the video helped you, I am always trying to find ways of making my explanations as easy to understand as possible. If I've managed to help you understand the material in ways that other instructors haven't, that's mission accomplished from my point of view!