Пікірлер
@AnderzL7
@AnderzL7 6 сағат бұрын
Who tf is this video for?? If you know anything about databases this is common knowledge and if you don’t know anything about databases this video won’t mean anything to you. Waste of 30 minutes
@hb3393
@hb3393 12 сағат бұрын
God I love your videos thank you so much 🙏
@lephantriduc
@lephantriduc 13 сағат бұрын
Whenever I do exercises on normalization, I always visualize the examples in this video! One of the most useful videos I have watched!!!
@sungodfatih
@sungodfatih 14 сағат бұрын
Thank you for your video. It was made very nice and clear.
@TheNiro87
@TheNiro87 20 сағат бұрын
Before the we started our current project, I forced our desinger to watch your videos. He now drafts the DB himself and does not make up strange relations anymore hence I only have to improve on the draft. You safed me a ton of work. Thank you!
@lichterzauber
@lichterzauber Күн бұрын
All your explainer videos are masterful and second to none. Thank you!
@SumTingWong886
@SumTingWong886 Күн бұрын
Missed your vids, hope to see more! 💛
@nicholasjordan677
@nicholasjordan677 Күн бұрын
Thanks to your normalization video I was able to finish up my first database class I thank you for the nature of your production.
@hanabiilesley
@hanabiilesley Күн бұрын
Bro remembered his password, w vid as always
@HARSHULSINGAL-dz3nx
@HARSHULSINGAL-dz3nx Күн бұрын
I started learning about database systems today wishing you upload more and voila, thanks for coming back!
@peiopascualhernando2236
@peiopascualhernando2236 Күн бұрын
Genius channel THANK YOU
@Skyb0rg
@Skyb0rg Күн бұрын
How would you enforce a one to many relationship in the other direction in SQL? Ex. enforce that every Address is associated with at least one Person.
@decomplexify
@decomplexify Күн бұрын
That's a little complicated. On most database platforms, you'll need to write "triggers", for example a trigger to ensure that if an attempt is made to put through a transaction that deletes the only remaining person associated with a given address, this attempt is detected and the transaction is automatically rolled back. If you are designing your database using a sophisticated data modelling tool like ERwin, the tool will be able to see (from the cardinalities you specified on the relationship in your diagram) that these triggers are needed, and will script them for you automatically.
@Bulbadane
@Bulbadane Күн бұрын
WOOOHOO HE'S BACK
@RawShogun
@RawShogun Күн бұрын
I’m just want to let you know you helped me get started as a master data manager, I’ve since been promoted to Sr analyst thank you so much.
@decomplexify
@decomplexify Күн бұрын
Congratulations! That's amazing, and you are welcome - it's really gratifying to learn that my videos have played some part in this.
@RawShogun
@RawShogun Күн бұрын
Your back!
@cringeyetfree
@cringeyetfree Күн бұрын
omg
@InkFPS
@InkFPS Күн бұрын
What of the scenario where students study beforehand and are prepared for an exam any day of the week? Whether it is a surprise or not is no longer relevant because they were told there would be a 'surprise' exam, meaning It isn't much of a surprise regardless of when it occurs.
@WilliamLaurenson
@WilliamLaurenson Күн бұрын
Return of the king
@mrbartuss1
@mrbartuss1 Күн бұрын
He’s back?
@sutofana
@sutofana Күн бұрын
I HAVE MISSED YOU SO MUCH.WELCOME BACK. 🥰🥰🥰🥰🥰
@hariprasatht9082
@hariprasatht9082 Күн бұрын
Big fan! Keep up the good work 👍
@decomplexify
@decomplexify Күн бұрын
CORRECTIONS: Expand this comment to see corrections. CONTENTS 0:00 Introduction 0:57 Extracting information requirements 2:58 Relationships 4:07 Cardinality 6:42 Basics of Chen notation 9:50 Attributes 11:04 Weak entities 13:17 Crow's foot notation 15:10 M-M / 1-M / 1-1 relationships 18:07 From ERD to relational database 20:00 Conclusion * CORRECTIONS * In the part of the video dealing with "weak entities", at 12:06, I've underlined the Line Sequence Number attribute with a solid line. By convention, an attribute like Line Sequence Number (i.e. the attribute that, in combination with its parent's unique identifier, identifies the weak entity) should actually be underlined with a dotted line.
@guysome3263
@guysome3263 2 күн бұрын
Wouldn't Release_Year_And_Month go against 1NF for introducing non atomic values and a repeating group?
@decomplexify
@decomplexify Күн бұрын
There isn't a repeating group because there's no repetition of anything. And regarding the idea of non-atomic values, see my reply to LucasGuerrero-t6x below.
@guysome3263
@guysome3263 Күн бұрын
@@decomplexify Thank you for clarifying.
@guysome3263
@guysome3263 2 күн бұрын
Am i understanding this correctly? In 2NF non-key attributes must depend on the entire key but they are allowed to depend on non-key attributes as well (if they depend on the entire key already)? Is that where 2NF and 3NF differ?
@decomplexify
@decomplexify Күн бұрын
Yes, that's correct.
@guysome3263
@guysome3263 Күн бұрын
@@decomplexify Sweet. Appreciate the fast replies.
@Coctvdt
@Coctvdt 3 күн бұрын
omfg i hate chemistry
@podenno
@podenno 3 күн бұрын
I imagine someone has already mentioned it, but at 23:45, describing 4th NF, you should mark the key as being both columns in each table. Also, just a suggestion: in describing 5th NF, it might be nice to talk about simple sentences of subject, object and predicate (and triples, maybe even RDF).
@d0fabur5st82
@d0fabur5st82 6 күн бұрын
8:30 isn't the prime attribute defined as the smallest set of candidate keys? why would 2 and 3 be a prime attribute in this case when |1| = 1 ?
@sawonstudent6009
@sawonstudent6009 7 күн бұрын
Why you stopped making videos?
@stv3qbhxjnmmqbw835
@stv3qbhxjnmmqbw835 7 күн бұрын
We at our company try to normalise until it can't be further normalized. So 5th NF. One day our crazy CTO said 6NF out of nowhere. I have no clue what 6NF is, but our CTO is bonkers for sure.
@eugineketa
@eugineketa 7 күн бұрын
00:05 - Understanding the concept and importance of database normalization. 03:16 - Normal forms in database theory ensure data safety and integrity. 06:17 - Relational databases enforce strict data type for columns and require primary keys to ensure First Normal Form. 09:10 - Storing a repeating group of data violates First Normal Form. 12:15 - Table design vulnerabilities 15:07 - The table isn't in Second Normal Form, making it vulnerable to problems. 17:46 - Third Normal Form and Boyce-Codd Normal Form 20:26 - Fourth Normal Form addresses multivalued dependencies. 23:15 - Tables with multivalued dependencies on the key are not in Fourth Normal Form. 26:05 - Database platform can deduce preferred products using SQL
@seisveintiocho-x9e
@seisveintiocho-x9e 9 күн бұрын
I have a bridge that passed safety level 5: safe for your mom.
@as_if
@as_if 9 күн бұрын
Not seen a better and clarifying lecture on this. Using real instances to describe all that helped.
@Lelour
@Lelour 10 күн бұрын
I wish I had found your video earlier 😅
@ebenezeryeboah7090
@ebenezeryeboah7090 11 күн бұрын
A friend shared this video after I complained I didn't understand this after lectures. Thank you for the great explanation. Life could be this simple
@PowerStar004
@PowerStar004 11 күн бұрын
There is one key element that is being left out: Mr. Harris must promise that there will be *exactly 1* exam next week. Otherwise there could for example, be an exam on Monday and then also an exam on Friday, both of which are a surprise.
@joecatt16
@joecatt16 12 күн бұрын
Are you single?
@wordwise128
@wordwise128 13 күн бұрын
Best Explanation Ever
@je.ro.me_101
@je.ro.me_101 14 күн бұрын
Awesome video. Loved it. Fully understood 👏👏
@LucasGuerrero-t6x
@LucasGuerrero-t6x 15 күн бұрын
With the column "Release-Year-And-Month" I think the table is not even in 1NF, so that's already a problem.
@decomplexify
@decomplexify 12 күн бұрын
You're referring to the idea that everything has to be "atomic" in 1NF. However, I haven't included "everything must be atomic" as a 1NF criterion in my Database Normalization video. Database theorists like Chris Date and Hugh Darwen nowadays consider "atomicity" to be a fairly meaningless concept. They say the notion of being "non-atomic" would be either so sweeping that it includes everything, or so subjective that we can't usefully apply it. For example, suppose there's a table that has a column called Number_Of_Members. This column has values like, for example, 27. But 27, if you think about it, really means 2 tens and 7 ones. So 27 isn't an atomic value; it is decomposable into parts. On this basis, any table with an integer column would violate First Normal Form. The same would likewise be true of any string column, because a string can be decomposed into individual characters. The same would likewise be true of any date column (which decomposes into year, month, day of month). And so on. And yet this would be absurd. This is why people like Chris Date no longer regard atomicity as a 1NF criterion, and neither do I.
@LucasGuerrero-t6x
@LucasGuerrero-t6x 11 күн бұрын
@@decomplexify Interesting. Yeah, definitely. Now that you mentioned, that Release-Year-And-Month could be "atomic" if we consider it as a string. Thank you for the heads up on the newest discussion on this topic.
@9KandA2
@9KandA2 17 күн бұрын
thank you very much, I was struggling with this for hours.
@AbdullahiIbrahim-y7f
@AbdullahiIbrahim-y7f 18 күн бұрын
question1: about the 1nf, what if trev has 100 unique item type, how is the table different from the previous other than in height/width
@JayInjety-x6v
@JayInjety-x6v 20 күн бұрын
Too clear. Thanks, Man.
@peter1762
@peter1762 20 күн бұрын
hi, I have a questoin. in the the corrections section below you redefiend 4NF and non-trivial dependecy do you think it is correct to say " make up all the attributes in the key." instead "make up all the attributes in the table."? because, sometimes in many-to-many realtions table i.e "bridge table" we need to add housekeeping fields to that bridge table and this should not be violating 4NF
@decomplexify
@decomplexify 19 күн бұрын
That's a very good and perceptive question! The answer is that "make up all the attributes in the table" is correct. We can use our Model_Colors_Available table as an example. The key is {Model, Color}, and lets say that in addition to those two attributes, the table has a third attribute called Model_Color_Introduced_Timestamp. This is the housekeeping attribute. You're worried that the multivalued dependency Model ->> Color still exists but has become non-trivial - thus violating 4NF. However, this is not the case. The true situation is: now that we've added the housekeeping attribute, there isn't any multivalued dependency Model ->> Color anymore. With all three attributes present, the only way you could say there was a multivalued dependency Model ->> Color would be if the following condition is met: We can pick out a given Model value (let's say "Tweety") and be confident that the set of Colors associated with it ("Yellow", "Blue") will always be the same regardless of which value of the housekeeping attribute (like "2024-11-29-09:49") we choose. But this condition DOESN'T hold. So there isn't a non-trivial dependency Model ->> Color; in fact there isn't a dependency Model ->> Color at all. And therefore there is no violation of 4NF.
@peter1762
@peter1762 19 күн бұрын
@decomplexify thanks for this in-depth answer
@SreenivasPagadala
@SreenivasPagadala 22 күн бұрын
Wow what a clarity.
@alejandrostablum5326
@alejandrostablum5326 22 күн бұрын
Excelent Video
@Sam73727
@Sam73727 22 күн бұрын
Wow! Thanks for simplifying it! It helped me out so much! <3
@dalskiBo
@dalskiBo 22 күн бұрын
Thank you - most articulate explanation of all on normalization; nearly lost me with dumbing it down on the bridges at the beginning but glad I sat through it.
@ShahzaibHaider-g2g
@ShahzaibHaider-g2g 23 күн бұрын
Great video
@harshilgandhi2191
@harshilgandhi2191 25 күн бұрын
best video ever to learn normalization.
@dansylvester3579
@dansylvester3579 26 күн бұрын
4nf & 5nf exist but irl your going to have an allowed configurations table that doesn't adhere to 4nf and 5nf rules. Example the ice cream coloring that ice queen uses is found to cause cancer by the state of California. Perhaps the paint robot doesn't give good coverage with blue paint on one model. Perhaps sales doesn't want to release the red deluxe chateau bird house until next year. Or maybe you have too many configurations and it's too costly to keep them in stock.
@decomplexify
@decomplexify 26 күн бұрын
An "allowed configurations" table featuring Model, Color, and Style violates 4NF when the business rules and conventions that apply are the ones I described in the video. However, if different business rules and conventions apply, then such an "allowed configurations" table IS in 4NF. What I described in the video was a company called DesignMyBirdhouse that does custom-made birdhouses based on a selection made by the customer from a menu of choices. There is no inventory kept in stock; every birdhouse is custom-made on demand. And so there's no prospect of a particular combination being out of stock, because there is no stock. So, when you say "maybe you have too many configurations and it's too costly to keep them in stock", you're describing a different type of business, with different constraints - in particular, the notion that Color and Style are independent of each other for a given model doesn't apply in the type of business you're describing. Under THOSE conditions, an available-combinations table featuring Model, Color, and Style is in 4NF. The key thing here is that you can never know whether a table is normalized unless you know the dependencies that apply. A given table might be normalized given one set of dependencies, but not normalized given a different set of dependencies. This is what your comment brings out.
@dansylvester3579
@dansylvester3579 26 күн бұрын
@decomplexify irl It's an executives decision what's allowed. The table you broke up to get 4nf is what I call an executive normal form table. Those are the available options. For the haters you don't understand how this is used in business.