Computer Knowledge

Database and SQL

4,213 Questions

Master structured query language commands, database joins, table constraints, and alias generation. This section covers relational database management concepts and query outputs essential for technical aptitude. These technical questions feature prominently in banking IT officer exams and computer knowledge sections.

SQL queries and aliasesDatabase table constraintsDatabase joins and transformationsStored procedures and functions

Database and SQL Questions

Multiple choice
  1. In 2nd NF, primary key contains multiple attributes.

  2. In 3 NF, a relation is decomposed and set up a new relation for each partial key.

  3. A functional dependency exists only when both constraints functionally dependent on each other.

  4. All of the above.

  5. Only (1) and (3).

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

All are the true statements.

Multiple choice
  1. The database system can apply the DML (Data Manipulation Language) operations on multiple rows simultaneously.

  2. The application programs affect on account of any operation in the changes in the disk storage.

  3. The application programs will remain unimpaired in case of data are physically centralized or distributed.

  4. The integrity constraints can not be applied on application programs.

  5. Both (2) and (4).

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This is false as Codd specify the 'Physical data independence rule so any change in the storage can not affect the programs.

Multiple choice
  1. BCNF is the higher version of third normal form (3NF).

  2. A database design is in BCNF if each entity in the set constitute the design.

  3. BCNF performs dependency preservation.

  4. All of the above.

  5. Both (2) and (3).

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Every BCNF decomposition is not dependency preservation. It means that one attribute in the relational schema does not include dependency.

Multiple choice
  1. A column indexing makes the fast access for selecting the data.

  2. A column indexing makes the DML (Data Manipulation Language) operations slow down.

  3. More than one indexes are possible in a particular table.

  4. Indexers can be applied on a part of a column.

  5. None of the above

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

All of the above are the true statements.

Multiple choice
  1. Schema definition

  2. Liaising with users

  3. Defining security and integrity checks

  4. Defining backup/Recovery procedures

  5. Specifying primary key

Reveal answer Fill a bubble to check yourself
E Correct answer
Explanation

This is not the role of the DBA in DBMS as specification of primary key is done by the user.