Skip to content
GK24
Computer AwarenessHard

Removing partial dependency of a non-key attribute on part of a composite primary key brings a table to which normal form?

  1. A.First normal form
  2. B.Second normal form
  3. C.Third normal form
  4. D.Boyce-Codd normal form

Correct answer

B. Second normal form

Explanation

The correct answer is B, second normal form. A table is in second normal form when it is already in first normal form and no non-key attribute depends on only a part of a composite primary key; such a partial dependency is removed by moving that attribute into a table of its own. Option A is wrong because first normal form only requires that every value be atomic and that repeating groups be removed, which says nothing about composite keys. Option C is wrong because third normal form removes transitive dependency, where one non-key attribute depends on another non-key attribute rather than on a part of the key. Option D is wrong because Boyce-Codd normal form is a stricter version of the third form, requiring every determinant to be a candidate key. Learn the order: 1NF atomic values, 2NF partial, 3NF transitive.

Read the full article: Databases and DBMS: Models, Keys, SQL and Normalisation

View all
Q1.Computer AwarenessAsked in: Delhi · 7 Aug 2021, Shift 2Easy

Which of the following is the oldest database model?

  1. A.Hierarchical
  2. B.Object oriented
  3. C.Deductive
  4. D.Relational
Show answer
Correct answer: A. Hierarchical

The hierarchical model is the first data model used in commercial database software; IBM built its Information Management System on it in the 1960s for the Apollo programme.

Q2.Computer AwarenessMedium

Who proposed the relational model of databases?

  1. A.Charles Babbage
  2. B.Edgar Frank Codd
  3. C.Dennis Ritchie
  4. D.James Gosling
Show answer
Correct answer: B. Edgar Frank Codd

Codd, a British computer scientist working at IBM, set out the relational model in a paper published in 1970, proposing that all data be held in simple two-dimensional tables and joined by matching values rather than by fixed pointers.

Q5.Computer AwarenessMedium

Which SQL command removes all the rows of a table but keeps the table structure, and is classified as a DDL command?

  1. A.DELETE
  2. B.DROP
  3. C.TRUNCATE
  4. D.ERASE
Show answer
Correct answer: C. TRUNCATE

TRUNCATE empties a table in one operation, leaving the columns, data types and constraints in place so that the table can be filled again at once; because it changes the object rather than selected rows it is grouped with the Data Definition Language and it is much faster than deleting…