Computer Knowledge

Database and SQL

3,929 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. Deferred consideration

  2. Immediate consideration

  3. Detached consideration

  4. Action consideration

  5. Reply consideration

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

This consideration in the design and implementation of active databases states that the condition is evaluated as part of the same transaction, as the triggering event and is evaluated immediately.

Multiple choice
  1. character function

  2. date function

  3. miscellaneous function

  4. numeric function

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

LPAD is an Oracle function that pads the left side of a character string with a specified set of characters. It operates on character data types.

Multiple choice
  1. join

  2. natural query

  3. outer query

  4. nested query

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

A subquery is a query nested inside another query, often referred to as a nested query or inner query.

Multiple choice
  1. substitutes NULL value for a given value in a query result

  2. substitutes NULL value with a specified value in a query result

  3. substitutes NULL value with '00' in a query result

  4. substitutes space for NULL value in a query result

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

The NVL function in Oracle replaces a NULL value with a specified expression or value.

Multiple choice
  1. delete table definition

  2. delete information from tables

  3. delete constraint on tables

  4. delete index on tables

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

TRUNCATE is a DDL command that removes all rows from a table while keeping the table structure intact.

Multiple choice
  1. Search Queued Language

  2. Structured Query Language

  3. Static Queried Language

  4. Structure Quest Language

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

SQL is used for searching and editing of records in Oracle.