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. 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. Display > Statements of Inventory > Stock Query

  2. Display > Inventory Books > Stock Query

  3. Display > Inventory Info > Stock Query

  4. Display > Inventory Vouchers > Stock Query

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

For stock query, we have to select display, then statements of inventory and then stock query. Stock query screen appears.

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.