| ACCURATE QUESTIONS AND DETAILED
ANSWERS | GUARANTEED PASS | GRADED
A | LATEST UPDATE 2025-2026
1. A database manager starts to convert data that has been normalized into a form that
conforms to the relational model. A simple primary key has been established and all the
repeating groups have been deleted.
In which form is this data?
A. First normal form
B. Second normal form
C. Third normal form
D. Fourth normal form
✅ Correct Answer: B. Second normal form
Rationale: First normal form eliminates repeating groups. Second normal form is achieved once
all non-key attributes are fully functionally dependent on the primary key.
2. Two attributes in two related tables have the exact same domain of values. The attribute is a
primary key in one table.
Which kind of key is the attribute in the other table?
A. Foreign
B. Primary
C. Compound
D. Composite
✅ Correct Answer: A. Foreign
Rationale: A foreign key in one table references the primary key in another, linking the two
tables through a common domain.
3. When a product is deleted from the product table, all corresponding rows for the product in
the pricing table are deleted automatically as well.
What is this referential integrity technique called?
,A. Foreign key constraint
B. Referential delete
C. Cascaded delete
D. Dynamic update
✅ Correct Answer: C. Cascaded delete
Rationale: A cascading delete automatically removes related rows in child tables when the
parent row is deleted.
4. Which command should be added to the end of the following SQL statement to make the
event_id attribute the primary key?
sql
CopyEdit
CREATE TABLE test1 (contact_id INT(10), name VARCHAR(10), event_id INT(5),
A. PRIMARY KEY = event_id));
B. PRIMARY KEY (event_id));
C. (PRIMARY KEY: event_id);
D. PRIMARY (event_id)'
✅ Correct Answer: B. PRIMARY KEY (event_id));
Rationale: This is the correct syntax to define a primary key within a CREATE TABLE statement.
5. What does the clause PRIMARY KEY (column) mean in a CREATE TABLE statement?
A. The primary key value, in parentheses, can be used by a column.
B. The column, in parentheses, is the primary key for the table.
C. The foreign key, in parentheses, is linked to the primary key.
D. The row, in parentheses, can be inserted as the foreign key.
✅ Correct Answer: B. The column, in parentheses, is the primary key for the table.
Rationale: This defines the primary key column that uniquely identifies each row in the table.
6. Which statement assigns a foreign key to the customer name?
A. FOREIGN KEY ( customer_name ) REFERENCES table_name ( customer_name )
B. FOREIGN KEY = customer_name REFERENCES table_name ( customer_name )
C. FOREIGN KEY ( customer_name ) ( index_columns )
D. FOREIGN KEY [ table_name ] ( customer_name )
✅ Correct Answer: A. FOREIGN KEY ( customer_name ) REFERENCES table_name (
, customer_name )
Rationale: This is the correct SQL syntax to define a foreign key relationship between two
tables.
7. Which command creates a database only if it does not already exist?
A. IF NOT EXISTS db_name ;
B. CREATE DATABASE IF NEW db_name ;
C. CREATE DATABASE IF NOT EXISTS db_name ;
D. IF NOT EXISTS CREATE DATABASE db_name ;
✅ Correct Answer: C. CREATE DATABASE IF NOT EXISTS db_name ;
Rationale: This SQL statement creates the database only if it is not already present.
8. Which line should be added to this SQL statement to return products that cost 20 dollars?
sql
CopyEdit
SELECT PRODNUM, PRODNAME FROM PRODUCT
A. WHERE PRODCOST=20;
B. AND PRODCOST=20;
C. WHERE PRODCOST>=20;
D. AND PRODCOST>=20;
✅ Correct Answer: A. WHERE PRODCOST=20;
Rationale: The WHERE clause filters rows, selecting only those where PRODCOST equals 20.
9. What does WHERE identify in a basic SQL SELECT statement?
A. The associative entity
B. The rows to be included
C. A table's intersection data
D. A range of included columns
✅ Correct Answer: B. The rows to be included
Rationale: The WHERE clause filters the rows returned by a SELECT query.
10. Which line added to this SQL statement returns employee numbers of at least 1000?