Q1
True / FalseIn Oracle, a table must be in First Normal Form (1NF) before it can be considered in Second Normal Form (2NF).
A table must first meet all the requirements of 1NF before it can be evaluated for 2NF compliance.
Q2
True / FalseIn Oracle, a table is in Second Normal Form (2NF) if it does not have any partial dependencies.
2NF requires that there are no partial dependencies, meaning no non-key attribute depends only on part of a composite primary key.
Q3
True / FalseIn Oracle, a table with a single-column primary key is automatically in Second Normal Form (2NF) if it is already in First Normal Form (1NF).
If a table is in 1NF and has a single-column primary key, it is automatically in 2NF because there can be no partial dependencies with a single-column key.
Q4
True / FalseIn Oracle, a table with a composite primary key is in Second Normal Form (2NF) if all non-key columns are fully dependent on the entire primary key.
A table with a composite primary key must have all non-key columns fully dependent on the entire key for it to be in 2NF.
Q5
True / FalseIn Oracle, to achieve Second Normal Form (2NF), it may be necessary to decompose a table into multiple tables.
To eliminate partial dependencies, a table may need to be decomposed into multiple tables, each with its own primary key.
Q6
True / FalseIn Oracle, normalization to Second Normal Form (2NF) can help reduce data redundancy.
Normalizing to 2NF reduces data redundancy by ensuring that non-key attributes are only dependent on the whole primary key, not just part of it.
Q7
True / FalseIn Oracle, a table that is in Second Normal Form (2NF) can still have transitive dependencies.
A table in 2NF can still have transitive dependencies, where non-key attributes depend on other non-key attributes. These are addressed in Third Normal Form (3NF).
Q8
True / FalseIn Oracle, a table that includes a foreign key must also ensure that all non-key attributes are fully dependent on the entire primary key to be in Second Normal Form (2NF).
Even if a table has foreign keys, it must ensure that all non-key attributes are fully dependent on the entire primary key to meet 2NF requirements.
Q9
True / FalseIn Oracle, converting a table to Second Normal Form (2NF) can involve creating additional tables and establishing foreign key relationships between them.
Converting to 2NF often involves decomposing tables and creating new tables with foreign key relationships to eliminate partial dependencies.
Q10
True / FalseThe Oracle Certified Professional (OCP) exam includes knowledge on the principles of normalization, including Second Normal Form (2NF), and how to apply these principles to design efficient database schemas.
The OCP certification covers advanced topics, including the principles of normalization such as 2NF, to ensure candidates can design efficient and normalized database schemas.
Q18
Multiple ChoiceWhich SQL code snippet demonstrates a table that violates the Second Normal Form (2NF) due to partial dependency?
SQL Code
CREATE TABLE order_details (
order_id NUMBER,
product_id NUMBER,
product_name VARCHAR2(100),
quantity NUMBER,
PRIMARY KEY (order_id, product_id)
);
Options A, B, and C correctly demonstrate a table that violates 2NF because `product_name` is dependent only on `product_id`, not on the entire composite key. Option D is incorrect because it does not include `product_name` and thus does not violate 2NF.
Q19
Multiple ChoiceWhich SQL code snippet demonstrates a table correctly normalized to the Second Normal Form (2NF)?
SQL Code
CREATE TABLE orders (
order_id NUMBER PRIMARY KEY,
order_date DATE
);
CREATE TABLE products (
product_id NUMBER PRIMARY KEY,
product_name VARCHAR2(100)
);
CREATE TABLE order_details (
order_id NUMBER,
product_id NUMBER,
quantity NUMBER,
PRIMARY KEY (order_id, product_id),
FOREIGN KEY (order_id) REFERENCES orders(order_id),
FOREIGN KEY (product_id) REFERENCES products(product_id)
);
Options A, B, and C correctly demonstrate a table structure normalized to 2NF, where non-key attributes are dependent on the entire primary key. Option D is incorrect because it lacks the foreign key references necessary for 2NF.
Q20
Multiple ChoiceWhich SQL code snippet correctly identifies a partial dependency that should be removed to achieve Second Normal Form (2NF)?
SQL Code
CREATE TABLE project_assignments (
project_id NUMBER,
employee_id NUMBER,
project_name VARCHAR2(100),
start_date DATE,
PRIMARY KEY (project_id, employee_id)
);
Options A, B, and C correctly demonstrate a partial dependency where `project_name` depends only on `project_id`, which should be removed to achieve 2NF. Option D is incorrect because it does not include the partial dependency.