Unit 3 : Data Model Flashcards
1
Q
What is entity?
A
- Anything about which data are collected and stored
- Example : In a school database, students, teachers, and courses could all be considered entities.
2
Q
What is attribute?
A
- A characteristic of an entity
( Column inside like Student table - name, studentID , address )
3
Q
What is relationship?
A
- Association among entities
4
Q
List out the relationship types ( 3 )
A
- One-to-many ( 1 : M ) relationship
- Many-to-many ( M : N or M : M ) relationship
- One-to-one ( 1: 1 ) relationship
5
Q
What is constraint?
A
- A restriction placed on the data
- IS NULL, NOT NULL, UNIQUE, CHECK
6
Q
List out examples for one-to-many relationship
A
- One student can enroll in many courses, but each course is taught by only one instructor
- Where one entity can be associated with many instances of another entity
7
Q
List out the example for many-to-many relationship
A
- Students can enroll in many courses, and courses can have many students
- Where many instances of one entity can be associated with many instances of another entity
8
Q
List out the examples for one-to-one relationship
A
- A department head leads one department and that department is led by only one department head
- Where one instance of an entity is associated with exactly one instance of another entity
9
Q
What are the sources of business rules? ( 5 )
A
- Company managers
- Policy makers
- Department managers
- Written documentation
- Procedures
- Standards
- Operations Manuals
- Direct interviews with end users
10
Q
Who invented the relational model?
A
- Codd ( IBM ) in 1970
11
Q
List out 4 of the evolution of data models
A
- Hierarchical
- Network
- Relational
- Entity Relationship
12
Q
What does relational model consists? ( 12 )
A
- Table
- Relational Diagram
- Keys ( Primary Key )
- Relationship ( one-to-many )
- Normalization ( Process of organizing data in a database to reduce redundancy and improve data integrity )
- Contraints ( NOT NULL , UNIQUE , CHECK )
- Indexes
- SQL ( Strutured Query Language)
- Data Integrity
- Views
- Stored Procedures and Triggers
- Transactions
* Use in MySQL
13
Q
What does table consists?
A
- Consist a series of row and column intersections
14
Q
What is data model?
A
- It is a relatively simple representations, usually graphical, of complex real-world data structures
- ERD is one of the data model
15
Q
Why are data models important in database design ?
A
- It facilitate interaction among the designer, the applications programmer, and the end user