Chapter 3

Normalizing Your Data

In This Chapter

arrow Understanding why single-table databases are inadequate

arrow Recognizing common data anomalies

arrow Creating entity-relationship diagrams

arrow Using MySQL Workbench to create data diagrams

arrow Understanding the first three normal forms

arrow Defining data relationships

Databases can be deceptive. Even though databases are pretty easy to create, beginners usually run into problems as soon as they start working with actual data.

Computer scientists (particularly a gentleman named E. F. Codd in the 1970s) have studied potential data problems and defined techniques for organizing data. This scheme is called data normalization. In this chapter, you discover why single-table databases rarely work for real-world data and how to create a well-defined data structure according to basic normalization rules.

On the website, I include a script called buildHero.sql that ...

Get HTML5 and CSS3 All-in-One For Dummies, 3rd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.