Course Resources

Search

Search IconIcon to open search

Last updated Unknown

# Entity Relationship Diagram Structure

Entity Relationship Diagrams come in various formats, but they share common elements that help us understand the architecture of a database. As we progress through this course, we will explore different ways to represent ERDs. For now, let’s focus on a simple example using an HR database.

# HR Entity Relationship Diagram

Source: https://www.sqltutorial.org/sql-sample-database/

The data here should look familiar, it’s the diagram we used for the HR database in the Querying and Analysis assignment.

# Table Structure

The following properties are universal for all ERDs:

Take the countries table for example. It is represented as a box in the HR Entity Relationship Diagram.

# Practice Questions

  1. According to the HR Entity Relationship Diagram, what will the columns be for the countries table?
  2. Which column is the primary key for the countries table? How is the primary key shown in this diagram?

# Back: SQL Analytics M6 - Entity Relationship Diagrams and Table Creation