Lecture 4: From ER Diagrams to Relational Models

Title Slide
Today’s lecture reviewed the high-level conceptual language of ER diagrams and the more concrete structures of the relational model; followed by some recipes for translating from the first into the second. This isn’t always an exact match, and for any particular ER diagram we might go back to its original scenario description to decide how to best represent it as a relational model. Even so, this kind of step-by-step staging towards a fully formal representation is an effective route to capturing the subtleties of real-world systems.

The lecture covered in particular translating the following ER idioms into the relational model of linked tables.

  • Entities, relationships, and their attributes
  • Key constraints
  • Participation constraints
  • Weak entities
  • Entity hierarchies

Link: Slides for Lecture 4

Homework

Tutorial exercise sheet 1: bring your solutions to your tutorial group meeting next week. If you have any difficulties, or questions about it, ask on Piazza.

References

Screenshot of web file management ifile.inf.ed.ac.uk
Secure web access to files in your DICE home directory.

Link: DICE ifile page

Screenshot of InfBASE home page InfBASE
Staffed drop-in study help centre for first and second-year Informatics students

In FH-1B.19 every day, see web for timetable.

Link: InfBASE home page

Screenshot of Informatics computing help pages Computing Help
Use our custom help pages for DICE and Informatics computing.

Links: Informatics computing help; Computing support form