Q1
True / FalseIn Oracle, a table must be in Second Normal Form (2NF) before it can be considered in Third Normal Form (3NF).
A table must first meet all the requirements of 2NF before it can be evaluated for 3NF compliance.
Q2
True / FalseIn Oracle, a table is in Third Normal Form (3NF) if it has no transitive dependencies.
3NF requires that there are no transitive dependencies, meaning non-key attributes cannot depend on other non-key attributes.
Q3
True / FalseIn Oracle, a table in Third Normal Form (3NF) can still have partial dependencies.
To be in 3NF, a table must already be in 2NF, which means it cannot have any partial dependencies.
Q4
True / FalseIn Oracle, a transitive dependency occurs when a non-key attribute depends on another non-key attribute.
A transitive dependency exists when one non-key attribute depends on another non-key attribute instead of depending directly on the primary key.
Q5
True / FalseIn Oracle, normalizing a table to Third Normal Form (3NF) helps reduce data redundancy and update anomalies.
3NF reduces data redundancy and update anomalies by ensuring that all non-key attributes depend only on the primary key.
Q6
True / FalseIn Oracle, to achieve Third Normal Form (3NF), it may be necessary to create additional tables and establish foreign key relationships.
Achieving 3NF often involves decomposing tables to eliminate transitive dependencies and establishing foreign key relationships to maintain data integrity.
Q7
True / FalseIn Oracle, a table in Third Normal Form (3NF) will always have fewer columns than a table in First Normal Form (1NF).
While normalizing to 3NF often involves decomposing tables, it does not necessarily mean the resulting tables will have fewer columns. The focus is on reducing redundancy and dependencies, not necessarily reducing the number of columns.
Q8
True / FalseIn Oracle, achieving Third Normal Form (3NF) can sometimes lead to performance trade-offs due to the need for additional joins.
Normalizing to 3NF can lead to performance trade-offs, as the need for additional joins to retrieve data from decomposed tables can impact query performance.
Q9
True / FalseIn Oracle, all tables in Third Normal Form (3NF) are also in Boyce-Codd Normal Form (BCNF).
While all tables in BCNF are in 3NF, not all tables in 3NF are necessarily in BCNF. BCNF is a stricter form of 3NF that deals with certain types of anomalies not addressed by 3NF.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes knowledge on the principles of normalization, including Third Normal Form (3NF), and how to apply these principles to design efficient database schemas.
The OCP certification covers advanced topics, including the principles of normalization such as 3NF, to ensure candidates can design efficient and normalized database schemas.
Q11
Multiple ChoiceWhich SQL code snippet demonstrates creating a table that satisfies Third Normal Form (3NF) in Oracle?
SQL Code
CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Options A, B, and C demonstrate creating a table in 3NF by ensuring that every non-key attribute is fully functionally dependent on the primary key. Option D is incorrect because it contains a transitive dependency.
Q12
Multiple ChoiceWhich SQL code snippet violates the Third Normal Form (3NF) by including a transitive dependency?
SQL Code
CREATE TABLE employees (
employee_id NUMBER PRIMARY KEY,
department_id NUMBER,
department_name VARCHAR2(100),
FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
Options A, B, and C violate 3NF because the `department_name` attribute is transitively dependent on the primary key `employee_id` through the `department_id`. Option D is correct because it removes the transitive dependency.
Q13
Multiple ChoiceWhich SQL code snippet correctly normalizes a table to Third Normal Form (3NF) by eliminating partial dependencies?
SQL Code
CREATE TABLE order_details (
order_id NUMBER,
product_id NUMBER,
quantity NUMBER,
PRIMARY KEY (order_id, product_id)
);
Options A, B, and C correctly normalize the table by ensuring all non-key attributes are fully dependent on the entire composite primary key. Option D is incorrect because it still contains a partial dependency.
Q14
Multiple ChoiceWhich SQL code snippet demonstrates an advanced scenario ensuring a table is in Third Normal Form (3NF) by eliminating transitive dependencies?
SQL Code
CREATE TABLE sales (
sale_id NUMBER PRIMARY KEY,
product_id NUMBER,
sale_date DATE,
FOREIGN KEY (product_id) REFERENCES products(product_id)
);
Options A, B, and C demonstrate eliminating transitive dependencies by ensuring that `sale_date` is directly related to the primary key `sale_id`. Option D is incorrect because it introduces a transitive dependency.
Q15
Multiple ChoiceWhich SQL code snippet is most likely to require further normalization to achieve Third Normal Form (3NF)?
SQL Code
CREATE TABLE student_courses (
student_id NUMBER,
course_id NUMBER,
student_name VARCHAR2(100),
course_name VARCHAR2(100),
PRIMARY KEY (student_id, course_id)
);
Options A, B, and C demonstrate tables that need further normalization because `student_name` and `course_name` introduce transitive dependencies. Option D is correctly normalized to 3NF.
Q16
Multiple ChoiceWhich SQL code snippet demonstrates a table that correctly meets the requirements of Third Normal Form (3NF)?
SQL Code
CREATE TABLE customer_orders (
order_id NUMBER PRIMARY KEY,
customer_id NUMBER,
order_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Options A, B, and C correctly demonstrate 3NF compliance by ensuring that every non-key attribute is fully functionally dependent on the primary key without any transitive dependencies. Option D is incorrect because it includes a transitive dependency.
Q17
Multiple ChoiceWhich SQL code snippet correctly removes a transitive dependency to ensure Third Normal Form (3NF)?
SQL Code
CREATE TABLE invoices (
invoice_id NUMBER PRIMARY KEY,
customer_id NUMBER,
invoice_date DATE,
FOREIGN KEY (customer_id) REFERENCES customers(customer_id)
);
Options A, B, and C correctly remove transitive dependencies by ensuring that `invoice_date` is directly related to the primary key `invoice_id`. Option D is incorrect because it introduces a transitive dependency.
Q18
Multiple ChoiceWhich SQL code snippet demonstrates splitting a table to meet Third Normal Form (3NF) requirements?
SQL Code
CREATE TABLE projects (
project_id NUMBER PRIMARY KEY,
project_name VARCHAR2(100),
manager_id NUMBER,
FOREIGN KEY (manager_id) REFERENCES managers(manager_id)
);
Options A, B, and C demonstrate correctly splitting tables to remove transitive dependencies, ensuring the table is in 3NF. Option D is incorrect because it introduces a transitive dependency.
Q19
Multiple ChoiceWhich SQL code snippet would be considered properly normalized to Third Normal Form (3NF)?
SQL Code
CREATE TABLE departments (
department_id NUMBER PRIMARY KEY,
department_name VARCHAR2(100),
manager_id NUMBER,
FOREIGN KEY (manager_id) REFERENCES managers(manager_id)
);
Options A, B, and C are correctly normalized to 3NF by ensuring all non-key attributes are fully dependent on the primary key. Option D is incorrect because it introduces a transitive dependency.
Q20
Multiple ChoiceWhich SQL code snippet demonstrates a certification-level scenario where Third Normal Form (3NF) is enforced?
SQL Code
CREATE TABLE employees (
employee_id NUMBER PRIMARY KEY,
first_name VARCHAR2(50),
last_name VARCHAR2(50),
department_id NUMBER,
FOREIGN KEY (department_id) REFERENCES departments(department_id)
);
Options A, B, and C correctly demonstrate enforcing 3NF by ensuring no transitive dependencies exist. Option D is incorrect because it introduces a transitive dependency.
Q25
Single ChoiceWhich of the following SQL scripts creates an Oracle table that adheres to Third Normal Form (3NF)?
This table structure adheres to 3NF because it does not have any transitive dependencies. dept_id can be linked to a department table separately.