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
  1. a) Source field is the Foreign Key field in record pointing to target BC

  2. b) Destination field is the Primary Key field in the target BC

  3. c) Business Component specifies master BC in target view

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) No Delete

  2. b) No Import

  3. c) No Update

  4. d) No SELECT

  5. a) No Delete c) No Update

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) Validation

  2. b) Read Only

  3. c) Required

  4. d) Force case

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) Validation

  2. b) Read Only

  3. c) Required

  4. d) Force case

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) An index must exists for the columns associated with the sort ield(s) specified in the Sort Specification.

  2. b) To use the index, the sort fields should be in the same order as the columns in the index

  3. c) If a sort specification uses columns from two different tables, both index will be used.

  4. d) If a sort specification uses columns from two different tables, no index will be used.

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) PreDefault

  2. b) Post Default

  3. c) Validation

  4. d) Required

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) Calculated fields are not stored in the database

  2. b) Calculated fields are derived from extension tables

  3. c) Calculated fields cannot be used as sort criteria

  4. d) Calculated fields required too many columns

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) Dynamic picklist copies foreign key reference to the selected value into destination field and reflects the current data in the database.

  2. b) Toggling allows to configure several applets to share the same place in a view

  3. c) We can configure more than one applet toggle in a view.

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. 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

  2. b) A primary FK creates a one-to-many relationship between the parent and the child

  3. c) A primary FK allows the one initial query to join in one child record per MVG per parent record and display it

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) S_CONTACT

  2. b) S_LST_OF_VAL

  3. c) S_USERS

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) The PickList will appear empty.

  2. b) The PickList will display default values.

  3. c) Siebel shows an error

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) UPPER

  2. b) LOWER

  3. c) FIRSTUPPER

  4. d) None

  5. a) UPPER b) LOWER c) FIRSTUPPER

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) PreDefault

  2. b) Post Default

  3. c) Validation

  4. d) Required

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. a) TRUE

  2. b) FALSE

  3. c) None

  4. d) None

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology architecture
  1. Every entity must have a primary key

  2. It is not necessary to define primary key for an Entity

  3. @Primary annotation is used for denoting a simple primary key

  4. All the above

Reveal answer Fill a bubble to check yourself
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.