IMS Database and Oracle SQL Functions
Test your knowledge of IMS DB concepts including hierarchical database management, DBD, segments, and Oracle SQL functions for date, string, and numeric operations.
Questions
what does the query select * from table_abc where column_xyz like '%oracle%'
- selects all the rows from the table having the column_xyz value starting with the word oracle
- selects all the rows from the table having the column_xyz value ending with the word oracle
- selects all the rows from the table having the column_xyz value containing the word oracle
- selects all the rows from the table having the column_xyz value not containing the word oracle
Which of the following returns 123.46
- abs(-123.456)
- trunc(123.456,2)
- round(123.456,2)
- avg(1,2,3,4,5)
What does initcap('oracle') return?
- O
- oracle
- Oracle
- ORACLE
What does the function months_between('02-feb-2001','01-jan-2001') return?
- 8
- 30
- 1.03225806
- .998989989
What does the function next_day('14-mar-2001','tuesday') return?
- '14-mar-2002'
- '13-mar-2001'
- '20-mar-2001'
- '14-apr-2001'
What does trunc(datetime) do?
- removes the time component from a date_time value
- removes the date component from a date_time value
- removes the day component from a date_time value
- removes the year component from a date_time value
Which of the following functions is used to convert a date to a string in the specified format?
- to_date(string,format)
- to_char(date,format)
- to_date(date,format)
- to_number(string,format)
IMS Db uses what kind of database management
- network
- relational
- hierarchical
- object-oriented
What is the advantage of IMS DB?
- Faster access
- easy implementation
- high flexibility
- simple management
Which of the following is true about DBD ?
- multiple DBD s for each database
- none of these
- cannot be used by DL/I
- created by a process called DBDGEN
A segment has 3 occurrences for a parent. This segment is called a
- multiple
- twin
- sibling
- none of these
What information is not included in DBD
- access method
- segment name
- parameter
- key field length
IMS Db uses what kind of database management
- network
- relational
- hierarchical
- object-oriented
What is the advantage of IMS DB?
- Faster access
- easy implementation
- high flexibility
- simple management
Which of the following is true about DBD ?
- multiple DBD s for each database
- none of these
- cannot be used by DL/I
- created by a process called DBDGEN
A segment has 3 occurrences for a parent. This segment is called a
- multiple
- twin
- sibling
- none of these
What information is not included in DBD
- access method
- segment name
- parameter
- key field length
IMS Db uses what kind of database management
- network
- relational
- hierarchical
- object-oriented
What is the advantage of IMS DB?
- Faster access
- easy implementation
- high flexibility
- simple management