Identifying Primary Key
Which of the following best describes a primary key in a relational database?
- A special column that must contain unique and non-null values for each row
- A column that can have duplicate values and sometimes null values
- A temporary identifier used only during data import
- A secondary column used for sorting results
- A hidden value that links tables automatically
Understanding 1NF
What does it mean for a table to be in First Normal Form (1NF)?
- Every field contains only atomic (indivisible) values and each record is unique
- The table eliminates all transitive dependencies
- Each table contains only foreign keys
- There are no repeating groups but duplicate rows are allowed
- Every non-key attribute is functionally dependent on part of a composite key
Detecting Redundancy
Given the table below, what kind of redundancy issue exists?nn| OrderID | CustomerName | CustomerAddress | ProductID |n| ------- | ------------ | --------------- | --------- |n| 1001 | Alice Smith | 23 Oak St. | P001 |n| 1002 | Bob Stone | 52 Pine St. | P003 |n| 1003 | Alice Smith | 23 Oak St. | P002 |
- Repeating group redundancy
- Insertion anomaly
- Functional dependency violation
- Update anomaly
- Spelling redundancy
Understanding Foreign Keys
In data modeling, what is the purpose of a foreign key?
- To establish a link between two tables by referencing the primary key of another table
- To automatically generate unique values for each row
- To store encrypted information in a table
- To increase the performance of queries
- To define the default sorting order of a table
2NF Definition
Which statement correctly defines Second Normal Form (2NF)?
- A table is in 2NF if it is in 1NF and all non-key attributes are fully functionally dependent on the entire primary key
- A table is in 2NF if every column is unique
- A table is in 2NF if it contains no redundant data
- A table is in 2NF if it uses foreign keys
- A table is in 2NF if all transitive dependencies are removed
Normalization Scenario
If you store both customer and product data in a single table, which problem are you most likely to encounter?
- Data redundancy and update anomalies
- Faster queries and better indexing
- Improved data security
- More efficient memory usage
- Fewer logical errors
Recognizing Transitive Dependency
In a table where StudentID determines StudentName, and StudentName determines StudentEmail, what kind of dependency exists between StudentID and StudentEmail?
- Transitive dependency
- Functional dependency
- Partial dependency
- Reflexive dependency
- Complex dependency
ERD Concepts
What does an Entity-Relationship Diagram (ERD) primarily illustrate?
- The entities, relationships, and attributes involved in a database system
- The set of all data types used in a database
- The sequence of program instructions for query execution
- The network topology between multiple databases
- The index structures applied to database tables
3NF in Practice
Which of the following must be true for a table to comply with Third Normal Form (3NF)?
- It is in 2NF, and all attributes are non-transitively dependent on the primary key
- No attribute can have a null value
- There are no foreign keys in the table
- Each row must be unique
- All non-key attributes are multivalued
Correcting Misspellings in Modeling
Which of the following variable names is misspelled for a normalized data model?
- CustmoerID
- CustomerID
- OrderID
- ProductID
- PurchaseDate