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 programming languages
  1. 2

  2. 6

  3. 9

  4. None

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

For database tables, a maximum of 9 indexes is generally recommended and supported in SAP systems. While it's technically possible to create more, having too many indexes can degrade performance during data modification operations (INSERT, UPDATE, DELETE) because each index must be maintained. Option A (2) is too restrictive. Option B (6) is not the standard limit. Option D (None) is incorrect - indexes are allowed.

Multiple choice technology packaged enterprise solutions
  1. Se14

  2. Se11

  3. Se16n

  4. All the Above

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

SE14 is the SAP transaction code for the Database Utility, which is used for database-specific operations on tables such as activating, deleting, and checking database objects. SE11 is for the ABAP Dictionary (data dictionary maintenance), and SE16N is the Data Browser for viewing table contents.

Multiple choice technology packaged enterprise solutions
  1. sm30

  2. /nn

  3. sap_maintain

  4. All the Above

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

SM30 is the SAP transaction code for the Table Maintenance Generator, which is used to create and maintain table views for custom tables. This tool allows users to create, edit, and display data through views. The other options (/nn and sap_maintain) are not standard SAP transaction codes.

Multiple choice technology packaged enterprise solutions
  1. Multiple

  2. Single

  3. Two

  4. None

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

Views in ABAP Dictionary cannot have their own indexes. Indexes exist only on the underlying database tables that the view references. The view itself is a virtual table - when you query a view, SAP retrieves data from the base tables using their indexes. Therefore, views have 'None' (zero) indexes.

Multiple choice technology web technology
  1. update

  2. select

  3. delete

  4. merge

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

The SELECT statement is used to retrieve data from database tables. UPDATE is for modifying data, DELETE for removing data, and MERGE for conditional operations.

Multiple choice technology web technology
  1. notnull

  2. NOT NULL

  3. primary key

  4. unique key

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

'NOT NULL' is a SQL constraint, while 'notnull' (lowercase without space) is not the correct syntax. NULL constraints must be uppercase in SQL standard syntax.

Multiple choice technology web technology
  1. fasdfs

  2. fas

  3. fasd

  4. fasdfsadf

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

RTRIM removes trailing spaces from a string. When applied to 'fasdfsadf ' (with trailing spaces), it returns 'fasdfsadf' with all trailing spaces removed. Options A, B, and C incorrectly truncate characters from the end of the actual string content rather than just removing spaces.

Multiple choice technology programming languages
  1. Data Defenition Language

  2. Data Manipulation Language

  3. Data Updation Language

  4. Data Selection Language

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

UPDATE is a Data Manipulation Language (DML) command that modifies existing data in database tables. DML includes INSERT, UPDATE, DELETE, and SELECT operations that manipulate data. DDL includes CREATE, ALTER, DROP commands that define database structure.