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
-
inserted
-
updated
-
failed
-
deleted
-
rejected
-
persistent
-
non-persistent
-
both a and b
-
none
A
Correct answer
Explanation
When the lookup table doesn't change between sessions, use PERSISTENT lookup cache. The cache file is saved to disk and reused across sessions, improving performance by avoiding repeated cache builds.
-
PL/SQL bulk Processing
-
Foreign key constraint manipulation
-
Inline View technique
-
All of the Above
D
Correct answer
Explanation
All three techniques are valid ETL performance optimization methods. PL/SQL bulk processing reduces context switching by processing data in batches rather than row-by-row. Foreign key constraint manipulation temporarily disables constraints during loading to avoid validation overhead. Inline view technique optimizes SQL queries by embedding subqueries to reduce data movement.
B
Correct answer
Explanation
In Siebel database naming conventions, foreign key columns reference the primary key of another table and are suffixed with _ID (for example, ACCNT_ID). Suffixes like _FK, _PK, or _UK are not the standard naming convention for foreign key columns in Siebel.
-
Updates joined fields
-
Picks value in to destination field
-
Can be bounded or unbounded
-
Can be only bounded
B,C
Correct answer
Explanation
A static picklist selects a value from a predefined list and copies it into a destination field. It can be configured as bounded (restricting entries to the list) or unbounded (allowing custom values). It does not update joined fields, which is typically a feature of dynamic picklists.
-
Foreign key
-
Index
-
Primary key
-
User Key
D
Correct answer
Explanation
A User Key in Siebel uniquely identifies records by specifying columns that must contain unique values, preventing duplicate entries. Unlike primary keys (system-generated ROW_ID) or foreign keys (relationships), User Keys are business-level constraints that enforce uniqueness across user-defined columns.
-
ROW_ID
-
PARTY_ID
-
BU_ID
-
PAR_ROW_ID
D
Correct answer
Explanation
When joining to party tables in Siebel, the destination column must reference PAR_ROW_ID, which is the standard foreign key column pointing to party-related records. ROW_ID is the generic primary key, PARTY_ID and BU_ID are not the standard join columns for party table relationships.
-
Modify the application engine that reads the repository file
-
Write custom stored procedures against the repository file
-
Write SQL statements against the repository file
-
Edit object definitions that make up the repository file
D
Correct answer
Explanation
To modify the Siebel application, you would need to edit the object definitions that make up the repository file.
Option A is incorrect because application engines are used to process data and perform complex business logic. They are not used to modify the Siebel application.
Option B is incorrect because stored procedures are used to encapsulate SQL statements for reuse and improve performance. They are not used to modify the Siebel application.
Option C is incorrect because SQL statements are used to query and manipulate data in a database. They are not used to modify the Siebel application.
Option D is correct because the Siebel repository file is made up of object definitions and these object definitions are edited to modify the Siebel application.
Therefore, the answer is: D. Edit object definitions that make up the repository file.
-
Name of the join specification object definition must be unique within the join
-
Destination column is required if the join occurs on a column other than ROW_ID
-
Source field denotes the name of the field on which the destination table will be joined
-
The Join Specification specifies the table to be joined
D
Correct answer
Explanation
A Join Specification defines the fields that match records between the parent table and the joined table. The parent 'Join' object itself defines the target table, not the child Join Specification object, making this option correct.
-
Child business component
-
Inter table
-
Destination field
-
Inter child column
A,B,D
Correct answer
Explanation
A Many-to-Many link in Siebel requires: (1) Child business component - the destination BC being linked to, (2) Intersection table - the table storing M:M relationships (e.g., S_ADDR_PER for contact-address relationships), and (3) Inter child column - the column in the intersection table that stores the foreign key to the child BC. Destination field is a general property for where data goes, not specifically required for M:M link configuration. The intersection table's columns to both parent and child are what make the M:M relationship work.
-
Using Join one can achieve M:M relationship
-
Explicit Join Fields are read-only
-
Explicit joins need to be created in Tools
-
Joins are between two applets
B,C
Correct answer
Explanation
Explicit joins in Siebel have two key characteristics: (1) Explicit join fields are always read-only because they pull data from another table through the join, and (2) Explicit joins must be created in Siebel Tools as join definitions between Business Components and their target tables. Joins are between BCs and tables (or between BCs), NOT between two applets - applets use BCs as their data source. Standard joins (explicit or 1:M) cannot achieve M:M relationships - that requires MVF/MVG with intersection tables. Joins connect data sources, not UI elements.
-
Use Business Objects and Links definitions
-
Query using the column ‘Foreign Key Table’ in tools
-
Use Flat Tab
-
Using Business components and Join definitions
B
Correct answer
Explanation
In Siebel Tools, each column object in a table has a 'Foreign Key Table' property that shows which table this column references (if it's a foreign key). To search for the foreign key table for a specific column, you query this column property in Tools - it directly shows the related table. Business Objects, Links, Business Components, and Join definitions are higher-level objects that USE foreign key relationships, but the FK Table column property is the direct way to see which table a column references. Flat Tab is a UI tab layout feature, unrelated to FK relationships.
-
Runs just one query to retrieve parent record and the primary child record
-
Retrieves all child record in one query
-
Increases space on the View
-
Can have zero or more MVF
A,B
Correct answer
Explanation
Multi-Value Groups (MVG) minimize SQL queries by retrieving the parent and primary child records in a single query when displaying a list view. While configured to retrieve child records efficiently, it can contain zero or more Multi-Value Fields (MVF) and helps conserve visual space.
B
Correct answer
Explanation
Interface tables do not store foreign keys directly for M:M relationships. Instead, they hold data mapped to base tables, while M:M relationships are resolved through intersection tables in the Siebel database schema. The foreign key relationships are established during EIM processing, not stored in interface tables.