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 general knowledge foreign languages
  1. Control

  2. Alter

  3. Delete

  4. Insert

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

The French verb 'effacer' means 'to delete' or 'to erase' in English. This is a fundamental computing action for removing files or text. Control, alter, and insert are different computer operations, not the meaning of effacer.

Multiple choice general knowledge
  1. Create new records in tables

  2. Modify the properties of the database objects

  3. Change the appearence of the database objects

  4. View records in queries

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

In Design View, you can modify object properties (like field settings, control properties) and change appearance (fonts, colors, layout). Creating new records happens in Datasheet View, and viewing query records is done in Query View results.

Multiple choice general knowledge
  1. Table Wizard

  2. Primary Key

  3. Design View

  4. Datasheet View

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

Datasheet View in MS Access allows you to create a table by simply typing data into a spreadsheet-like grid. Access automatically creates the table structure and assigns data types based on what you enter. Table Wizard guides you through table creation but requires more steps. Design View is for manually defining fields and properties before data entry.

Multiple choice general knowledge science & technology
  1. SQL cannot support object-orientation

  2. The same query can be written in many ways, each with vastly different execution plans

  3. SQL syntax is too difficult for non-computer professionals to use

  4. SQL creates excessive locks within the database

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

A major problem with SQL is that the same query can be written in multiple syntactically correct ways, each producing vastly different execution plans and performance characteristics. This makes optimization challenging and query performance unpredictable. SQL does support some object-oriented features, the syntax is designed for professionals, and locking behavior is configurable.

Multiple choice general knowledge sports
  1. Primary key access

  2. Access via unique index

  3. Table access by ROWID

  4. Full table scan

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

Table access by ROWID is the fastest method for Oracle to retrieve a single row because ROWID is the physical address of the row in the database. Accessing directly by physical address avoids the overhead of index traversal or scanning multiple rows. Full table scan is the slowest, while primary key and unique index access are faster than full scans but still require index lookup overhead.

Multiple choice general knowledge
  1. TPOL_PREM

  2. TPOL_COND

  3. TPOLICY

  4. TPOL_PREMIUM

  5. TPREMIUM

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

The table used to store premium details of the policy is TPOL_PREM. This follows standard insurance database naming conventions where TPOL prefix indicates policy-related tables. The naming pattern truncates 'premium' to 'PREM' for brevity, similar to how TPOLICY stores general policy information. Other options like TPOL_PREMIUM or TPREMIUM are not the correct table names.

Multiple choice general knowledge
  1. PLAF

  2. PLMZ

  3. PLPO

  4. PLKO

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

In SAP systems, PLAF (Planned Order) table stores all details related to planned orders including the creation date. The other tables listed serve different purposes: PLMZ for planned order milestones, PLPO for planned order operations, and PLKO for planned order headers. PLAF is the primary table for planned order master data.

Multiple choice general knowledge science & technology
  1. MySQL

  2. Postgres

  3. Both

  4. None of these

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

MySQL supports unsigned integer datatypes like INT UNSIGNED, BIGINT UNSIGNED which allow only non-negative values and effectively double the positive range. PostgreSQL does not have native unsigned integer types - it uses signed integers with CHECK constraints for similar functionality.

Multiple choice general knowledge science & technology
  1. YES

  2. NO

  3. Cannot predict

  4. Not applicable

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

MySQL is not 100% ACID compliant because ACID properties depend on the storage engine being used. Only InnoDB provides full ACID compliance with transactions, foreign keys, and crash recovery. Engines like MyISAM lack transaction support entirely.

Multiple choice general knowledge
  1. Manually: 1 row at a time

  2. Through Test Case Bulk Upload Tab

  3. Through Test Case Bulk Update Tab

  4. All of the above

  5. Both 1 and 3

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

After Test Cases are inserted into the database, ETP values can be modified either manually (one row at a time) OR through the Test Case Bulk Update Tab. Option B (Bulk Upload) is typically for initial uploads, not updates. Option D is incomplete, and options A, B, C alone are each insufficient.

Multiple choice general knowledge
  1. Values cannot be blank

  2. Values cannot be zero

  3. Values can be blank or zero

  4. 1 and 2

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

The 'Actual ETP' column in Test Case Bulk Upload/Update can contain blank values (for unknown/unestimated cases) OR zero values (for cases with no ETP allocation). Options A and B are incorrect because both blank AND zero are permitted. Option D is incorrect because it suggests both are forbidden, when both are actually allowed.

Multiple choice general knowledge math & puzzles
  1. REMOVE FROM CUSTOMER …

  2. DROP FROM CUSTOMER …

  3. DELETE FROM CUSTOMER WHERE …

  4. UPDATE FROM CUSTOMER …

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

DELETE FROM is the correct SQL command to remove rows. The syntax requires specifying the table and optionally a WHERE clause. DROP removes entire tables, UPDATE modifies data, and REMOVE is not a valid SQL command.