Skip to main content

Databases: Organizing Information

Databases
Organizing Information
    • Notifications
    • Privacy
  • Project HomeTools and Techniques in Software Engineering
  • Projects
  • Learn more about Manifold

Notes

Show the following:

  • Annotations
  • Resources
Search within:

Adjust appearance:

  • font
    Font style
  • color scheme
  • Margins
table of contents
  1. Introduction to Databases
  2. Relational Model
  3. Organizing Information
  4. Querying
    1. Example with SQLite
    2. Example with Google Sheet Query
  5. Joins
  6. Products
  7. Bibliography

Organizing data into tables

A database would have more than one table. One of the ways to plan out the separation of information into tables is to use the Entity Relationship Model (ERM).

ER diagrams is a visual tool created in 1971 to conceptualize modeling of DBMS. Understanding ERM goes hand in hand with working with multiple tables in a database. In terms of a DBMS, an entity is a table or attribute of a table in a database. By showing relationships among tables and their attributes, ER diagram shows the logical structure of a database.

Entity Relationship Diagram

An ER diagram has three main components: Entity, Attribute, and Relationship.

  1. Entity is represented by a rectangle
  2. Attribute is represented by an oval, could be a key attribute, composite attribute, multivalued attribute, or derived attribute.
  3. Relationship is represented by a diamond shape. Could be one to one, one to many, many to one, or many to many.

Annotate

Next Chapter
Querying
PreviousNext
Powered by Manifold Scholarship. Learn more at
Opens in new tab or windowmanifoldapp.org