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 packaged enterprise solutions
  1. database table

  2. sql view

  3. derived view

  4. derived/work records

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

Derived or work records are temporary, in-memory buffers in PeopleSoft used for display or processing purposes; they do not write to database tables. Consequently, database-level operations like RowDelete and RowInsert do not fire PeopleCode events for them, unlike physical tables or views.

Multiple choice technology packaged enterprise solutions
  1. on all the records of the currently active page

  2. on the records present in the component buffer

  3. on the record that is currently being processed

  4. on all the records of the component

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

The RowSelect PeopleCode event fires as each row is being processed during a row-by-row operation (like ScrollSelect). At this point, you can only refer to fields on the record currently being processed - you don't have access to all records in the buffer or component.

Multiple choice technology packaged enterprise solutions
  1. primary key

  2. search key

  3. alternate search key

  4. all the above

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

SearchInit PeopleCode executes specifically in the search key fields of a search record, not primary key or alternate search key fields. This event triggers when a user initiates a search dialog in PeopleSoft, allowing you to set default search values or control search behavior before the user enters criteria.

Multiple choice technology testing
  1. 03-JUL-00

  2. 10-JUL-00

  3. 12-JUL-00

  4. 11-JUL-00

  5. 17-JUL-00

  6. 09-JUL-00

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

The NEXT_DAY function returns the date of the first weekday named by char that is later than the date sysdate. Since July 10, 2000 is a Monday, the next Monday is exactly one week later, which is July 17, 2000.

Multiple choice technology databases
  1. 20

  2. 30

  3. 40

  4. 50

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

The Pctused parameter in Oracle determines the minimum percentage of a data block that must be used before it becomes available for new inserts. The default value is 40. This storage parameter works with Pctfree to manage space utilization within data blocks.

Multiple choice technology packaged enterprise solutions
  1. A structure

  2. Invalid

  3. Client-independent

  4. Not mandatory

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

In SAP ABAP, MANDT is the client field (Mandant). Tables with MANDT in their primary key are client-dependent, meaning data is isolated by client (tenant). Tables without MANDT in the primary key are client-independent - the same data is visible across all clients. Option C is correct.

Multiple choice technology packaged enterprise solutions
  1. Views can be buffered

  2. A view contains data

  3. database view is aurtomatically created on the database upon activation

  4. Maintenance Views are updateable

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

Views in SAP ABAP are virtual tables that do not store any data themselves - they only store the definition/query logic. The actual data comes from the underlying base tables when the view is accessed. Views can be buffered for performance, database views are created upon activation, and maintenance views are designed to be updateable.

Multiple choice technology packaged enterprise solutions
  1. The key fields of the table make up the primary index

  2. The developer designates the fields to be used as the primary index

  3. The primary index is automatically created when the table is activated

  4. The primary index ID cannot be designated by the Database Adminstrator

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

In SAP ABAP, the primary index is automatically created from the table's key fields when the table is activated. The system does this automatically - the developer does not manually designate which fields form the primary index. The key fields defined in the table structure automatically become the primary index.

Multiple choice technology platforms and products
  1. ContentValues

  2. ContentValue

  3. CursorFactory

  4. None of above

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

ContentValues is a class used to store a set of values that a ContentResolver can process. When inserting new rows into database tables using SQLiteDatabase.insert(), you pass a ContentValues object containing the column names and values for the new row. This is the correct and standard way to insert data.

Multiple choice technology platforms and products
  1. True

  2. False

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

SQLite uses dynamic typing (manifest typing) by default, meaning that a value's datatype is associated with the value itself, not its column. You can store any datatype in any column, meaning strict type checking is not enforced, making the statement false.

Multiple choice technology platforms and products
  1. True

  2. False

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

The statement is FALSE because while column names and order are provider-specific, data types are NOT universal across content providers. Each content provider defines its own schema including column names, data types, and default ordering. There is no common data type convention enforced across all providers.