Which normal form eliminates transitive dependencies in a database table?
AThird Normal Form (3NF)
BSecond Normal Form (2NF)
CBoyce-Codd Normal Form (BCNF)
DFirst Normal Form (1NF)
Correct Answer:
A. Third Normal Form (3NF)
Explanation:
3NF removes transitive dependencies where a non-key attribute depends on another non-key attribute. BCNF is stricter but 3NF is the standard answer for eliminating transitive dependencies.
Which of the following is a non-relational database designed for handling unstructured data at scale?
AMongoDB
BPostgreSQL
COracle Database
DMySQL
Correct Answer:
A. MongoDB
Explanation:
MongoDB is a NoSQL document database that handles unstructured and semi-structured data efficiently, unlike relational databases like PostgreSQL, Oracle, and MySQL.
In SQL, which JOIN returns only matching records from both tables?
AINNER JOIN
BLEFT JOIN
CFULL OUTER JOIN
DCROSS JOIN
Correct Answer:
A. INNER JOIN
Explanation:
INNER JOIN returns only rows with matching values in both tables. LEFT JOIN includes unmatched left table rows, FULL OUTER JOIN includes all rows, and CROSS JOIN produces Cartesian product.