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
-
a) Source field is the Foreign Key field in record pointing to target BC
-
b) Destination field is the Primary Key field in the target BC
-
c) Business Component specifies master BC in target view
-
d) None
D
Correct answer
Explanation
All three statements (A, B, C) accurately describe drilldown object components: the source field is a foreign key pointing to the target, the destination field is the primary key in the target BC, and the business component specifies the master view. Option D ('None') correctly indicates there is no wrong statement among them.
-
a) No Delete
-
b) No Import
-
c) No Update
-
d) No SELECT
-
a) No Delete c) No Update
E
Correct answer
Explanation
Business Component properties like No Delete and No Update control data modification permissions at the BC level, applying to all applets using that component. No Delete prevents record deletion, while No Update prevents modifications - together they can make records read-only across the application.
-
a) Validation
-
b) Read Only
-
c) Required
-
d) Force case
C
Correct answer
Explanation
The Required property, when set to TRUE, enforces field-level mandatory validation - users cannot leave the field blank and must enter a value before saving. Validation has broader logic checks, Read Only prevents any changes, and Force Case controls letter casing.
-
a) Validation
-
b) Read Only
-
c) Required
-
d) Force case
B
Correct answer
Explanation
The Read Only property, when set to TRUE, locks a field so users cannot modify its value. This is commonly used for system-generated fields or values that should only be changed through specific processes. Validation checks data correctness, Required enforces data entry, and Force case controls text formatting - none of these prevent editing.
-
a) An index must exists for the columns associated with the sort ield(s) specified in the Sort Specification.
-
b) To use the index, the sort fields should be in the same order as the columns in the index
-
c) If a sort specification uses columns from two different tables, both index will be used.
-
d) If a sort specification uses columns from two different tables, no index will be used.
C
Correct answer
Explanation
When sorting spans multiple tables, database engines cannot effectively use indexes because the sort operation requires combining data from different sources. Indexes work best for single-table sorts where column order matches. Option C is correctly identified as false - using both indexes simultaneously would be inefficient and is not supported.
-
a) PreDefault
-
b) Post Default
-
c) Validation
-
d) Required
A
Correct answer
Explanation
The PreDefault property assigns values automatically when creating new records, before users interact with the field. PostDefault assigns values after record creation but before commit. Validation and Required serve different purposes - checking data correctness and enforcing mandatory entry respectively.
-
a) Calculated fields are not stored in the database
-
b) Calculated fields are derived from extension tables
-
c) Calculated fields cannot be used as sort criteria
-
d) Calculated fields required too many columns
A
Correct answer
Explanation
Calculated fields derive their values dynamically from other fields using expressions and are not stored in the database. Since there's no underlying database column, the Column property remains empty. These fields exist only in memory during query execution, optimizing storage and computation.
-
a) Dynamic picklist copies foreign key reference to the selected value into destination field and reflects the current data in the database.
-
b) Toggling allows to configure several applets to share the same place in a view
-
c) We can configure more than one applet toggle in a view.
-
d) None
C
Correct answer
Explanation
Statement A correctly describes dynamic picklist behavior with foreign key references. Statement B accurately describes toggling functionality. Statement C is FALSE - Siebel allows only one applet toggle configuration per view region to maintain UI stability. The question correctly identifies C as the false statement.
-
a) A Primary Foreign Key is a foreign key on the parent-side that points to one “primary” record on the child -side of a one-to-many relationship
-
b) A primary FK creates a one-to-many relationship between the parent and the child
-
c) A primary FK allows the one initial query to join in one child record per MVG per parent record and display it
-
d) None
B
Correct answer
Explanation
The question asks which statement is false. Option B states 'A primary FK creates a one-to-many relationship between the parent and the child' - this is FALSE. A Primary Foreign Key points from the CHILD side to the PARENT (one child has one primary parent), creating a many-to-one relationship from child perspective, not one-to-many. The one-to-many exists from parent to child, but the FK itself doesn't create it - the relationship exists first, then FK identifies which child is primary. Options A and C correctly describe primary FKs.
-
a) S_CONTACT
-
b) S_LST_OF_VAL
-
c) S_USERS
-
d) None
B
Correct answer
Explanation
The S_LST_OF_VAL table (Siebel List of Values) stores all static picklist values in Siebel. Each row represents one picklist value with columns like VAL (display value), TYPE (picklist name), LANG (language), and ACTIVE/SORT order. S_CONTACT stores contact records, S_USERS stores user accounts - neither holds picklist data. Option D 'None' would imply no dedicated table exists, which is false.
-
a) The PickList will appear empty.
-
b) The PickList will display default values.
-
c) Siebel shows an error
-
d) None
A
Correct answer
Explanation
If S_LST_OF_VAL table has no values for a picklist's TYPE, the picklist appears empty to users. Siebel doesn't show an error or default values - it simply renders the picklist control with no options to select. This is normal behavior; the picklist framework exists but has no data to display. Option A correctly describes this, while B (defaults) and C (error) are incorrect.
-
a) UPPER
-
b) LOWER
-
c) FIRSTUPPER
-
d) None
-
a) UPPER b) LOWER c) FIRSTUPPER
E
Correct answer
Explanation
The Force Case property on Business Component Fields accepts three valid values: UPPER (converts to uppercase), LOWER (converts to lowercase), and FIRSTUPPER (capitalizes first letter, rest lowercase). These are the only valid options for forcing case on field values. Options A, B, and C list individual valid values, and option E correctly combines all three. 'None' is not a valid value for this property.
-
a) PreDefault
-
b) Post Default
-
c) Validation
-
d) Required
B
Correct answer
Explanation
PostDefault property in Siebel Business Components automatically assigns a value to a field only if the user hasn't entered one, and this assignment happens during the PreWrite event before the record is inserted into the database. PreDefault assigns values before UI rendering, while PostDefault works after user interaction but before database commit.
-
a) TRUE
-
b) FALSE
-
c) None
-
d) None
A
Correct answer
Explanation
The Owner Delete property in Siebel Business Components, when set to TRUE, restricts record deletion to only the owner (creator) of that record. This security feature ensures that users cannot delete records owned by other users, protecting data integrity and ownership rights.
-
Every entity must have a primary key
-
It is not necessary to define primary key for an Entity
-
@Primary annotation is used for denoting a simple primary key
-
All the above
A
Correct answer
Explanation
Every entity in JPA/EJB must have a primary key that uniquely identifies each persistent instance. This is a fundamental requirement of the entity specification - primary keys can be simple or composite, but an entity cannot exist without one. Option B is incorrect because primary keys are mandatory.