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

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

662


Define ramp limit in ab initio?

865


What is the difference between look-up file and look-up, with a relevant example?

801


What is data encoding?

833


What does it mean by the term 'sort component'?

758






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

1918


Pdl with an example?

746


What is the difference between sandbox and EME?

798


What is rollup component?

772


Suppose you find the term validation mentioned with a set of data, what does that simply represent?

679


List out some of the air commands used in abintio?

888


How to find the project(pub,priv,common,client) in between public, Private,common?Any identification?

1717


Difference between output_index and output_indexes in reformat

864


What is the syntax for m_dump in abinitio?

1180


Describe the grant/revoke ddl facility and how it is implemented?

800