You are not logged in. Your edit will be placed in a queue until it is peer reviewed.
We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.
Required fields*
- 7Hi Yosi, I understand your point. Normalization is foundational in really understanding the theory of relational databases and has real application in practice, so it isn't surprising that it is a big topic in courses. Good engineers should understand it and understand when it should be applied. The thing that doesn't seem to be covered in the course work is that selectively denormalizing can yield a lot of benefit and some problems really don't lend themselves to normalized models.DemetriKots– DemetriKots2013-09-29 17:52:40 +00:00Commented Sep 29, 2013 at 17:52
- 1What about data consistency ? For example if you have the shop name in every sales' detail, then you can potentially have different contradicting descriptions, whereas if data is normalized, the shop name appears only one (in the shop table) and there's no place for inconsistency.Tulains Córdova– Tulains Córdova2013-09-30 15:55:39 +00:00Commented Sep 30, 2013 at 15:55
- 1I agree. I think normalization gets over used at times by DBAs that have been taught that this is the best design. I've always suggested that the DBAs can normalize the tables in the ETL all they want, but when it comes to the tables the UI references, I need tables that are easy to query without excessive joins. I've run into tables that were so over-normalized, so could barely troubleshoot user issues without spending HOURs troubleshooting.L_7337– L_73372013-10-07 19:37:51 +00:00Commented Oct 7, 2013 at 19:37
- 1Au contraire, analytics is insanely difficult if you're unable to start from a normalized model. I just had to go through this exercise, and it was hell. Application developers should never assume that a denormalized schema is going to be suitable for analytics needs. And as for point #3 against normalization, it's a problem that's almost trivially solved by materialized/indexed views.Aaronaught– Aaronaught2013-10-26 21:52:46 +00:00Commented Oct 26, 2013 at 21:52
- 1And #2 sounds reasonable but strains credulity in practice - I cannot remember seeing a single instance in my 10+ years where constraints were actually thoroughly enforced by the application. More often, developers either incorrectly equate business rules to data integrity or use the fact that ORMs theoretically can enforce relational constraints as an excuse not to do it anywhere at all. Maybe I'm just being cynical, but all of my career experience has taught me that statements like "the application will enforce data integrity" are enormous red flags.Aaronaught– Aaronaught2013-10-26 21:54:50 +00:00Commented Oct 26, 2013 at 21:54
| Show 3 more comments
How to Edit
- Correct minor typos or mistakes
- Clarify meaning without changing it
- Add related resources or links
- Always respect the author’s intent
- Don’t use edits to reply to the author
How to Format
- create code fences with backticks ` or tildes ~ ```
like so
``` - add language identifier to highlight code ```python
def function(foo):
print(foo)
``` - put returns between paragraphs
- for linebreak add 2 spaces at end
- _italic_ or **bold**
- indent code by 4 spaces
- backtick escapes
`like _so_` - quote by placing > at start of line
- to make links (use https whenever possible) <https://example.com>[example](https://example.com)<a href="https://example.com">example</a>
How to Tag
A tag is a keyword or label that categorizes your question with other, similar questions. Choose one or more (up to 5) tags that will help answerers to find and interpret your question.
- complete the sentence: my question is about...
- use tags that describe things or concepts that are essential, not incidental to your question
- favor using existing popular tags
- read the descriptions that appear below the tag
If your question is primarily about a topic for which you can't find a tag:
- combine multiple words into single-words with hyphens (e.g. design-patterns), up to a maximum of 35 characters
- creating new tags is a privilege; if you can't yet create a tag you need, then post this question without it, then ask the community to create it for you
lang-sql