In database design, we start by identifying real-world objects or concepts that we want to store information about.These real-world objects are transformed into database entities, which are the foundation of our database structure.Each entity has specific properties called attributes that describe it. Let's look at some attributes of a Student entity.The student ID serves as a primary key, a unique identifier that distinguishes one student from another.Some attributes, like address, are composite, meaning they're made up of multiple components.An address consists of several parts: street, city, and zip code.Attributes store specific values for each instance of an entity. For example, a student's ID might be 12345, name might be John Smith, and email would be their specific email address.Relationships in databases show how different entities are connected to each other.In a one-to-one relationship, each instance of one entity corresponds to exactly one instance of another entity.One-to-many relationships show how one entity can be associated with multiple instances of another entity.Many-to-many relationships are the most complex, where multiple instances of each entity can be associated with multiple instances of the other.Let's look at a specific example of a many-to-many relationship between students and courses.Each student can enroll in multiple courses, and each course can have multiple students enrolled.These connections form a network of relationships, demonstrating how entities interact in the database.ER diagrams use specific symbols to represent different database components.Entities are shown as rectangles. Here we have a Student entity and a Course entity.Attributes are represented as ovals connected to their entity. Primary key attributes are underlined.Relationships are shown as diamond shapes connecting related entities.Cardinality is indicated using crow's foot notation, showing how entities are related to each other.The crow's foot symbols indicate the type of relationship between entities. They can show one-to-one, one-to-many, or many-to-many relationships.
Explore
Discover the full suite of AI-powered study tools designed to help you learn smarter.
Create notes from your material in seconds.
Take live notes and ask questions, hands-free.
Make flashcards from your material in one click.
Create and practice quizzes from your material.
Simulate the real exam with full-length tests.
Break your material into a clear learning path.
A real-time tutor that adapts to how you learn.
Talk to your personal AI tutor in real time.
Ask about the pictures and diagrams in your notes.
Call Spark.E to discuss your study material.
Turn your materials into a podcast or summary.
Grade essays with personalized feedback and tips.
Plan study sessions and hit your academic goals.
Play community-built study games or make your own.