This example shows the ER diagram for database of an account holder which contains attributes like Accounts, log and weak entity like transaction. Entity Relationship Diagram (ERD) or Entity Relationship Diagram (ERD) is a diagram that shows the relationship between entity sets contained in a database. In other words, ER diagrams aid in the explanation of database logical structure. Entities, attributes, and relationships are the three main notions that ER diagrams are built on. Rectangles are used to represent entities, ovals are used to describe characteristics, and diamond shapes are used to show relationships in ER Diagrams.