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 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).

Multiple choice technology programming languages
  1. 0

  2. 1

  3. 5

  4. true

  5. false

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

The SQL%ROWCOUNT attribute returns the number of rows affected by the last SQL statement. If the DELETE statement did not find any matching rows to delete, SQL%ROWCOUNT returns 0.