Week 2 Flashcards
What are the two main components of designing a database
Database design and application design
What does database design entail
designing the conceptual schema
As well as physical and implementation schema
What does application design focus on
DONT NEED TO NO MUCH AS IT IS CONSIDERED PART OF SOFTWARE ENGINEERING
focuses on the programs and interfaces that ACCESS the database
What is the first thing you need before you can even think about designing a schema
A specification - The requirements the database must follow
eg:
an employee can only work for one department …
What are the main concepts of an entity relationship model
.ENTITIES ( the objects)
.ATRIBUTES ( the properties of the entities)
. RELATIONSHIPS ( between 2 or more entities)
2 types of entities
. physical
. Non physical
Features of an attribute
.has an associated value
eg :
Name - “Abdullahi Mohamed”
ID - 1234543
. has an associated data type
Integer, double, string …
What are the types of attributes and define them
Simple attribute - cannot be divided into further components (Atomic)
eg Kings_ID - k123456
composite attribute attribute - can be divided into further components
Name( FirstName_ , MiddleName_ , LastName_ )
Address (Street, postcode city)
Employees with the same basic attributes can be grouped into an …
Entity type
eg employees can be grouped into entity type EMPLOYEE
What is a key attribute
an attribute of an entity in an entity type that has a unique value for each entity
eg Student_ID (of STUDENT)
CAN UNIQUELY IDENTIFY EACH ENTITY IN AN ENTITY TYPE
Key attribute underlined in ER diagram
How are attributes displayed in the ER Diagram
As an oval connected to the entity
How are multi valued attributes displayed in ER
as a double oval
How are key attributes displayed
underlined
How are composite attributes displayed
components connected to the oval representing the composite attribute
What is an entity set
The current state of entities of that type that are stored in the database
Detailed desciption-
The set of of all the instances that are in the empty set along with the data of all those instances
eg :
Instance - car 1
123(registration) , blue (colour) …
Instance car 2
.
.
.