The database schema is just the skeleton of the database, and it doesn’t store any actual data. Once the designers have provided the database schema, the developers can understand how the data should be stored by the application that they are implementing.
Database schema can be broadly divided into three categories.
Conceptual or logical schema that defines entities, attributes and relationships.
Internal or physical schema that defines how data is stored in a secondary storage. In other words, the actual storage of data and access paths.
External or view schema that defines different user views.
These three levels of schema are also known as the three-schema architecture. It can be diagrammatically depicted like this.
Entity Relationship Model:
Exercise:
Try and write the schema for the following database ER-D