Entities
Entities An entity is a real-world object or concept that participates in a database. Imagine it as a real-world person, place, or thing that exists outs...
Entities An entity is a real-world object or concept that participates in a database. Imagine it as a real-world person, place, or thing that exists outs...
An entity is a real-world object or concept that participates in a database. Imagine it as a real-world person, place, or thing that exists outside the database.
For example, in a student database, an entity could be a student. A student has a name, address, phone number, and other information that is stored in the database.
Entities can be simple or complex. A simple entity would be a single person, while a complex entity would be a group of people, a company, or a product.
Entities are the building blocks of a database. They are the items that are actually stored and retrieved from the database, such as student names, grades, and course names.
Here are some other examples of entities:
Product: An entity could be a product in an online store, such as a shirt, a book, or a computer.
Customer: A customer who purchases a product in an online store.
Course: A course offered by a university.
Teacher: A teacher who teaches a course at a university.
Entities can be related to each other through relationships. A relationship is a connection between two entities that is defined by a set of attributes. For example, a student entity can be related to a course entity through the student's enrolled course attribute