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 technology databases
  1. Cursor is a named Private SQL area

  2. Cursor holds temporary results

  3. Cursor is used for retrieving multiple rows

  4. SQL uses implicit Cursors to retrieve rows

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

A cursor IS a named private SQL area that holds temporary results and IS used for retrieving multiple rows. Option B claims it's 'not correct' to say a cursor holds temporary results, which is false - that's precisely what a cursor does.

Multiple choice technology databases
  1. Select … into

  2. Update

  3. Create

  4. Delete

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

In PL/SQL, Data Manipulation Language (DML) statements like SELECT...INTO, UPDATE, and DELETE are natively supported. However, Data Definition Language (DDL) statements like CREATE cannot be executed directly and must be run using dynamic SQL (EXECUTE IMMEDIATE).

Multiple choice technology enterprise content management
  1. True

  2. False

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

DQL (Data Query Language) is a subset of SQL that includes SELECT and related clauses for retrieving data. SQL also includes DDL (CREATE/ALTER/DROP), DML (INSERT/UPDATE/DELETE), DCL (GRANT/REVOKE), and TCL (COMMIT/ROLLBACK).