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

Why might the optimizer use a table scan when an index is available?

2018


What is rollup component?

897


What is local and formal parameter?

1091


Do you think effective communication is necessary for data processing?

957


What is common among data validity and data integrity?

769


what is the use of catlog or catlogfile?

2115


What do you mean by the term data warehousing? Is it different from data mining?

927


Have you worked with packages?

894


Explain how you can run a graph infinitely in ab initio?

857


To which project that prefix will set is to private project or public project or both?how and where to set?

1597


What is the purpose of having stored procedures in a data-based?

760


What are the different types of partition components in abinitio?

1045


How co> operating system natively processes the data?

827


Where $mpjret is used in ab-initio?

870


What is MAX CORE of a component?

941