Databases and IMS Database Systems
Covers general database concepts including SQL queries, joins, subqueries, and embedded SQL, along with specific IMS database topics such as SSA, PSB, status codes, and retrieval methods.
Questions
What is the command code use to update the path of the segment?
- Q
- D
- N
- I
What are the two types of recovery?
- Horizontal and Vertical
- Forward and Backward
- Left and Right
- Front and Back
__________ is the smallest information that a DLI can fetch .
- Field
- Segment
- Branch
- Character
What is the limitation on number of segment occurrences?
- 255
- 1000
- 453
- No Limitation
What does Procopt O in PSB stand for?
- Sequential Initial Load
- Access only Key of segment
- Used with G to Indicate that Hold is not allowed
- None of the above
What are the two types of SSA's?
- Basic and Complex
- General and Specific
- Qualified and Unqualified
- None of these
What is the retrieval sequence in IMS DB?
- Top to Bottom, Front to back, Left to right
- Front to back, Left to right, Top to Bottom
- Left to right, Top to Bottom, Front to back
- Left to right, Front to back, Top to Bottom
What Status code is returned when trying to insert a segment that already exists?
- IX
- IQ
- II
- ID
What is the status code for an invalid SSA?
- AJ
- AI
- AC
- Ak
Which of the following is true about a MPP processing mode in IMS?
- Databases accessed must be online.
- No data communication services are used.
- Transactions are entered at the terminal and stored in a message queue.
- True batch processing.
What is the limitation on the Secondary indicies for a database?
- 255
- 1000
- No Limit
- 32
After database is loaded in HSAM which of the following operation becomes invalid?
- GU
- GN
- GNP
- GHNP
PROCOPT cannot be used on PCB and SENSEG.
- True
- False
Which language is not supported by IMS?
- COBOL
- JAVA
- REXX
- VS PASCAL
The following SQL is which type of join: SELECT CUSTOMER_T. CUSTOMER_ID, ORDER_T. CUSTOMER_ID, NAME, ORDER_ID FROM CUSTOMER_T,ORDER_T WHERE CUSTOMER_T. CUSTOMER_ID = ORDER_T. CUSTOMER_ID
- Equi-join
- Natural join
- Outer join
- Cartesian join
Embedded SQL is which of the following?
- Hard-coded SQL statements in a program language such as Java
- The process of making an application capable of generating specific SQL code on the fly.
- Hard-coded SQL statements in a procedure.
- Hard-coded SQL statements in a trigger.
A UNION query is which of the following?
- Combines the output from no more than two queries and must include the same number of columns.
- Combines the output from no more than two queries and does not include the same number of columns.
- Combines the output from multiple queries and must include the same number of columns.
- Combines the output from multiple queries and does not include the same number of columns.
What type of join is needed when you wish to include rows that do not have matching values?
- Equi-join
- Natural join
- Outer join
- All of the above.
Which of the following statements is true concerning routines and triggers?
- Both consist of procedural code
- Both have to be called to operate.
- Both run automatically.
- Both are stored in the database.
Which of the following is a correlated subquery?
- Uses the result of an inner query to determine the processing of an outer query.
- Uses the result of an outer query to determine the processing of an inner query.
- Uses the result of an inner query to determine the processing of an inner query.
- Uses the result of an outer query to determine the processing of an outer query.