How can you find the 2nd Highest salary in a file department wise in abinitio?

Answer Posted / nikhil sali

We can use Scan.
1) First sort your data with 2 keys dept,salary description
2) In scan create one parameter say seq nbr and initialize it with 0.
3) in scan method increment it with 1
4) this will create rank in each group of dept
5) in output select method - select record where seq_nbr = 2

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between output_index and output_indexes in reformat

751


How co> operating system natively processes the data?

616


What are the different types of parallelism used in abinitio?

622


How do you improve the performance of a graph?

674


What is the function that transfers a string into a decimal?

672






How to compare two dmls in abinitio

1196


What do you understand by a cartesian join?

664


How you can run a graph infinitely in ab initio?

783


What is the difference between partitioning with key / hash and round robin?

637


Mention what is rollup component?

641


How can you SORT an already partitioned (round-robin) data ? How to use in abinitio graph? 3. How internally partition by key decides which key to send in which partition ? How to use in abinitio graph? 4. What is PDL ? Give him a shell type parameter and ask him to convert it to PDL. How to use in abinitio graph? 5. As shell type parameters are not supported by EME, then how you can use shell type parameter (If you don't want to use PDL) without hampering lineage diagram ? How to use in abinitio graph? 6.How you can generate dml from a COBOL copy book ? How to use in abinitio graph? 7. How you can convert from ebcdic to packed decimal ? How to use in abinitio graph?

3896


Name any two stages of the data processing cycle and provide your answer in terms of a comparative study of them?

625


How can you force the optimizer to use a particular index?

621


Give one reason when you need to consider multiple data processing?

627


What is m_dump?

734