Normalization Fundamentals
Which of the following best demonstrates a violation of the First Normal Form (1NF) when storing a student's phone numbers in a single table column?
- Storing multiple comma-separated phone numbers in one cell
- Creating a separate table for phone numbers
- Using an auto-increment primary key
- Assigning unique constraints on the phone number column
- Referencing student IDs as foreign keys for phone numbers
Entity-Relationship Model
In an Entity-Relationship (ER) diagram for a university system, which of the following best represents a many-to-many relationship?
- A student enrolls in multiple courses and each course has many students
- A library has exactly one librarian
- A department has several offices but each office belongs to only one department
- An instructor teaches only one course
- A class is scheduled at one specific time
Functional Dependency
Given a table storing employee ID, department name, and manager name, which scenario best illustrates a partial dependency?
- Manager name depends only on department name in a table where employee ID and department name are composite keys
- All employee records depend on a single, auto-generated key
- Department name depends on manager name and not employee ID
- Employee ID uniquely determines department name and manager
- Each department has several managers assigned per project
Referential Integrity Constraints
Which of the following best describes an action that would violate referential integrity in a relational database?
- Deleting a parent record that is referenced by a foreign key in another table
- Inserting a duplicate primary key into a table
- Updating an attribute value in a lookup table
- Creating an index on the foreign key column
- Changing the column data type from integer to float
Surrogate vs. Natural Keys
In designing a table to store citizen information, which situation best demonstrates the advantage of using a surrogate key over a natural key?
- Social Security numbers (natural key) are sometimes reassigned, so an auto-generated ID provides stable uniqueness
- The table only contains a single column for first names
- Each row is guaranteed to have a unique phone number as an identifier
- The combination of date of birth and city name is always unique for all citizens
- Users prefer to search by last name rather than numeric values