Interview Questions and Answers
Interview Questions and Answers
Within a cursor, how would you update fields on the row just
fetched?
The oracle engine uses work areas for internal processing in order to the
execute sql statement is called cursor. There are two types of cursors like Implicit
cursor and Explicit cursor. Implicit cursor is using for internal processing and Explicit
cursor is using for user open for data required.
A Cartesian join will get you a Cartesian product. A Cartesian join is when
you join every row of one table to every row of another table. You can also get one by
joining every row of a table to every row of itself.
A group of keyed dataset is said called lookup. The datasets in lookup can be
classified into two types such as Static and Dynamic. In the case of dynamic datasets,
the lookup file would be generated in the previous phase and used in the current phase.
With respect to the data present in a particular multi/serial file, lookup can be used to
map values. Lookup file has records which can be placed in main memory. They use
transform function for retrieving records much faster than retrieving from the disk.
Whenever lookup files are huge we can partition them. When we partition the lookup
files we have to use lookup local function to directly locate the data from a partition of
the lookup file. The prerequisite is that the data and the lookup file should be
partitioned on same key.
We can use join in-memory in this case, but in some cases we may have multiple lookup
files using a reformat we can use it multiple times.
Ex : there are three lookup files with 3 keys so in this case if we want to perform join we need to
use multiple join components , instead of that we use lookup.
Q) How would you find out whether a SQL query is using the indices you expect?
Explain plan can be reviewed to check the execution plan of the query. This would guide
if the expected indexes are used or not.
The main difference b/w dml & xfr is that DML represent format of the
metadata. XFR represent the transform functions which will contain business rules.
Q) What will the p-set calls?
The p-set will call the generic graph with all the parameters within it.
A conditional DML is used where you have different formats in a file, usually it is a
source file for obtaining the header detail and trailer portions of a file. We have to apply a
conditional DML with record type H, D& T (header, detail and trailer)
A conditional component is where we want to enable and disable certain components
through parameters passed. For example, if we want to perform a generic unload where we want
to sort the data based on certain condition or you do not want to sort the data, so you can enable
and disable the sort.