Understanding database basics
33
Understanding relational tables
In a database, you can organize data in multiple tables. For example, if you manage a database for
the Human Resource department, you might have one table that lists all the employees
information and another table that lists all the departments:
Because you have multiple departments for employees, but you would not store the information
about the departments in every employee row for several reasons:
•
The department information is the same for each employee in a given department, however,
repeating the department information for each employee is redundant. Storing redundant data
takes up more disk space.
•
If the department information changes, you can update one occurrence. All references to that
department are updated automatically.
Storing multiple occurrences of the same data is rarely a good thing. Good relational database
design separates application entities into their own tables. Key values from one table are often
stored in a related table rather than repeating the information. The key value is used to join the
data between the tables to return the complete set of data required.
Summary of Contents for COLDFUSION MX 61-GETTING STARTED BUILDING COLDFUSION...
Page 1: ...Getting Started Building ColdFusion MX Applications...
Page 6: ...6 Contents...
Page 10: ......
Page 30: ...30 Chapter 2 CFML Basics...
Page 36: ...36 Chapter 3 Database Fundamentals...
Page 48: ......
Page 76: ...76 Chapter 6 Lesson 2 Writing Your First ColdFusion Application...
Page 134: ...134 Index...