ER diagram examples: 12 database templates with SQL

Sample ER diagrams of whole databases, from a library to an airline. Each comes with its solution: what every table holds, why the keys sit where they do, and the SQL Server script to open and change in ERDsmith, free.

  • The ER diagram, drawn by ERDsmith
  • What each table holds and why
  • The SQL Server script, to copy or download
  • Open it in the editor and change it

Make your own ER diagram

Start from any example above and change it, or start from an empty diagram. ERDsmith runs in your browser, has no table limit and needs no account. To read the line ends, see crow's foot notation and ER diagram symbols.