Skip to content

Instantly share code, notes, and snippets.

@Shurlow
Last active October 20, 2017 16:52
Show Gist options
  • Select an option

  • Save Shurlow/0fdc9a90d2e71d4f80eb4f57c0e98603 to your computer and use it in GitHub Desktop.

Select an option

Save Shurlow/0fdc9a90d2e71d4f80eb4f57c0e98603 to your computer and use it in GitHub Desktop.
Notes on Relationship Diagrams

Relationship Diagrams Instructor Notes

Objectives

  • Explain the difference between data and information
  • Explain what an entity relationship diagram is
  • Explain why an entity relationship diagram is useful
  • Use entity relationship diagrams to model data
  • Proactively and reactively normalize data

Explain the difference between data and information

Turn to your neighbor and discuss the difference between data and information.

Explain what an entity relationship diagram is

Turn to your neighbor and define what an entity relationship diagram is. Make sure to describe the features that make up an entity relationship diagram using the key terminology: entity, attribute, associative entity, relationship (cardinality?)

Explain why an entity relationship diagram is useful

Turn to your neighbor and discuss why entity relationship diagrams are useful? Be prepared to share with the class.

Use entity relationship diagrams to model data

Pets

With your neighbors, draw an ERD to represent the relationship between pets entities and species entities.

Then add an owner entities to the diagram.

Then one more entity of your choosing.

Ebay

Draw an ERD to represent a simple e-commerce site like Ebay. Include the following entities:

  • Users
  • Sellers
  • Items
  • Orders

Proactively and reactively normalize data

Using the unnormalized data bellow, normalize it and construct an ERD modeling it's relationships.

Over the top solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment