SLR 10/ Databases Flashcards
Create an entity relationship diagram in 3nf for
Children’s swimming lessons at the local swimming pool
SWIMSCHOOL (member number, child name, contact number, class name, time of lesson, instructors name)
Members —————<Members>--------Class</Members>
Member Number Member Number Class name
Child name Class Name Time Lesson
Contact Num Instructor
Database management systems have a set of rules to maintain referential integrity, known as ACID. What does this mean?
Atomicity
Durability
Isolation
Consistency
Define Atomicity
A database change must be done completely or not at all. Databases must not become inconsistent due to partially completed transactions.
Define Durability
Changes must not be lost. Records held in RAM are immediately saved to secondary storage – particularly important with multi-user databases.
Define Isolation
Record locking prevents other processes from accessing the data when a record is being updated.
Define Consistency
Attempting to add information in one table when matching relational data in another table does not exist would not be allowed. Records in related tables also need to be updated.
Define Primary Key
A Unique Identifier for data in a database
Define a one to many relationship
One field can have many relations. i.e one student can have many classes
Define one to one relationship
One field has only one relationship