Learn CS Visual

Converting an Entity to a Table

In the ER model, a real-world thing you want to store in a database, such as a student or a book, is called an entity. The Student entity carries attributes, such as id, name, and grade, and among them, the one that uniquely identifies a row becomes the primary key. An entity converts to a table — attributes become columns, and the primary key becomes the table's primary key.

When converting an ER model entity to a table, what do the entity's attributes become?