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. inline view is a schema object

  2. is a subquery used in where clause

  3. inline view can't have group functions

  4. none of the above

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

Inline views are subqueries in the FROM clause (not WHERE clause), are NOT schema objects (they're temporary query constructs), and CAN contain group functions. Since A, B, and C are all incorrect, D (none of the above) is the correct answer.

Multiple choice technology databases
  1. drop the view and create a new one

  2. use CREATE OR REPLACE syntax

  3. use ALTER VIEW syntax

  4. use UPDATE sytax

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

CREATE OR REPLACE VIEW is the simplest way to modify a view definition - it preserves permissions and dependencies. Dropping and recreating loses permissions and requires re-granting. ALTER VIEW doesn't exist for redefining views in most databases. UPDATE syntax is for data, not DDL.

Multiple choice technology
  1. Form applet data comes from only one table

  2. Form applet data may come from many tables and columns

  3. Form applet data may come from many columns in a single table

  4. Form applet data comes from only one column in a table

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

Form applets display data from multiple tables through joins and business component layer abstraction. They're not limited to one table or one column - they aggregate related data. Option B correctly states they access data from many tables and columns.

Multiple choice technology databases
  1. IN

  2. ALL

  3. <>

  4. ANY

Reveal answer Fill a bubble to check yourself
A,B,D Correct answer
Explanation

When a subquery returns multiple rows, you must use set-based operators: IN checks membership in the result set, ALL compares against every value (e.g., salary > ALL means greater than the maximum), and ANY compares against any value (e.g., salary = ANY means equal to at least one, equivalent to IN). Standalone comparison operators like = or <> cannot directly handle multiple-row results.

Multiple choice technology databases
  1. SQL is a language for accessing data from an Oracle server

  2. iSQL*Plus cannot be abbreviated

  3. SQL cannot be abbreviated.

  4. iSQL*Plus is a language for accessing data from an Oracle

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

SQL is a query language for accessing and manipulating data in Oracle databases and other RDBMS. The name SQL itself is the standard, complete name used in practice - it's not typically abbreviated further in technical documentation. In contrast, iSQL*Plus is a client tool/interface for executing SQL, not a language itself.

Multiple choice technology databases
  1. Creation of a new table based off of the output of SELECT statements

  2. Return information from specific columns

  3. Return information from specific rows

  4. The combination of values in different tables

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

A SELECT statement returns a result set but does not create tables by itself - creating a table requires CREATE TABLE AS SELECT (CTAS) or SELECT INTO, which are DDL statements, not pure SELECT. Options B, C, and D are all capabilities of SELECT: specifying columns in the SELECT list, filtering rows with WHERE, and combining tables with JOIN.

Multiple choice technology web technology
  1. Create another SELECT statement in a FROM clause

  2. Create a WHERE statement in an UPDATE clause.

  3. Create another SELECT statement in a HAVING clause.

  4. Create an ALTER statement in a SET clause

Reveal answer Fill a bubble to check yourself
A,B,C Correct answer
Explanation

Subqueries can be placed in the FROM clause (inline views), the HAVING clause of a SELECT statement, and the WHERE clause of UPDATE/DELETE/SELECT statements. ALTER is a DDL command and cannot contain subqueries in a SET clause.

Multiple choice technology packaged enterprise solutions
  1. AR_PAYMENT_SCHEDULES_ALL

  2. AP_PAYMENT_SCHEDULES_ALL

  3. RA_CUSTOMER_TRX_ALL

  4. RA_CUSTOMER_TRX_LINES_ALL

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

When a transaction (invoice) is completed in Oracle Receivables, the system inserts or updates records in AR_PAYMENT_SCHEDULES_ALL to track the payment schedule and outstanding balance.