Week 2 Flashcards
The diagram that identifies the entities in the database and shows how they are related (logical representation) is called what?
E-R Model (Entity-relationship model)
What are the 3 relationship types in a database?
One-to-One
One-to-Many
Many-to-Many
Why is database normalization used?
To reduce/eliminate data redundancy and avoid anomalies
This identifies each record
Primary Key
When more than 1 field is needed to uniquely identify a record, what type of key is used?
A composite primary key
When a composite primary key is used, but a record only depends on part of the primary key, what occurs?
Partial dependency
When at least 1 value in a record isn’t dependent on the primary key, but on a different field, it is what?
Transitive dependency
What does the 1NF in normalization do?
eliminates all repeating values and identifies a primary or primary composite key
What does the 2NF in normaliztion do?
Makes sure the table is in 1NF and eliminates partial dependencies
What does the 3NF in normaliztion do?
Makes sure the table is in 2NF and removes any transitive dependencies
This key is used to establish a relationship between tables and is a primary key in one of the tables. It’s usually on the many side of a relationship.
Foreign Key
Since many-to-many relationships can’t exist in a relational database, a _____ is used to create two one-to-many relationships.
bridging entity
A table that references the foreign key to show what a particular value is.
Lookup table
This is the language used to create database objects and manipulate data stored in a database.
Structured Query Language (SQL)
What is the difference between a query and a transaction?
Query- causes data to be retrieved
Transaction- causes data to to read and written (updating, creating, deleting objects)