Week 5 - DB Design using ER model Flashcards
What are the four steps in the DB design process?
1) Requirements collection and analysis
2) Conceptual Design
3) Logical design / data model mapping
4) Physical design
What happens in Step 1: Requirements Collection and Analysis?
- Gather users’ data requirements (what kind of data needs to be stored e.g. student records)
- Gather users’ functional requirements (what does the db need to do e.g. allow users to search for employees)
- Use SWE tools like data flow diagrams and UML.
What is the goal of Step 2: Conceptual Design?
- Create a high-level blueprint of the database using a conceptual data model (e.g., ER model).
- Focus on understanding data relationships without considering physical storage.
Refine the model to remove redundancy.
What happens in Step 3: Logical Design?
- Convert the conceptual model into a logical data model (e.g., relational data model).
- Structure data in a way that the database management system (DBMS) can implement.
What is done in Step 4: Physical Design?
- Define storage structures, file organization, and access paths.
- Design and implement application programs for interacting with the database.
What does a database (DB) application consist of?
A database (DB) and its associated programs, which interact with the data.
What is ER modelling in database design?
A high-level conceptual design technique used to visualize and describe the structure of a database with textual and graphical representations.
What are the three main concepts of ER modelling?
Entities: Objects or “things” in the database (e.g., Student, Book).
Relationships: Associations between entities (e.g., Student enrolls in Course).
Attributes: Characteristics of entities and relationships (e.g., Student has a Name, ID).
How are relationships represented in ER diagrams?
Diamonds
How are entities represented in ER diagrams?
Rectangles
What is an attribute?
A particular property which describes the entity. They can be classified in terms of their characteristics. An individual attribute has a value.
How are attributes represented in ER diagrams?
Ovals connected to their respective entity or relationship.
What is the ‘value set’ or ‘domain’ of an attribute?
The set of possible values.
What is assigned to attributes for which the values are unknown or non-existant?
NULL
How are values represented in ER diagrams?
They aren’t.
What is an entity type?
A blueprint that defines the structure of the table, including its name and attributes.
What is an entity set?
The collection of all entities (or rows) that belong to a particular entity type.
How are entity types and sets named?
The entity type and its associated entity set typically share the same name.
What is an entity?
A specific instance of an entity type containing data
What are simple (atomic) attributes?
Attributes that cannot be broken down into smaller parts (indivisible).