How can you find the 2nd Highest salary in a file department wise in abinitio?
Answer Posted / ravi
we can do this with scan comp
exp::i/p folloed by sort folloed by scan and o/p
ip record
id,dept_name,sal
in sort keep key fields as (dept_name,sal descending)
now in scan write this T/f in parametres
type temporary_type
record
decimal("")secno;
end;
temp::initialize(in)=
begin
temt.secno::0;
end;
temp::scan(temp,in)=
out::finalize(temp,in)=
begin
out.in::in.id;
out.ddept_name::in.dept_name;
out.secno::temp.secno;
out.sal::in.sal;
end;
out::out_select(out)=
begin
out::out.secno==2
end;
| Is This Answer Correct ? | 2 Yes | 1 No |
Post New Answer View All Answers
Explain how abinitio eme is segregated?
Explain the methods to improve performance of a graph?
Do you think effective communication is necessary for data processing? What is your strength in terms of same?
What are the reasons for which business can trust the approach of data processing?
What is the return type of lookup_not_loaded() ? Does it return 0 or 1 to signify true or false or does it return index ...can someone please explain.
What are the steps to create a repository in ab initio?
Can anyone give me an example of realtime start script in the graph?
Can you explain the performance and scalability of co> operating system?
In abinitio, what types of parallelism are used?
Describe the process steps you would perform when defragmenting a data table. This table contains mission critical data?
What does de-partition mean in abinitio?
What is local and formal parameter?
Mention what information does a .dbc file extension provides to connect to the database?
How can you import XML repositories exported from different tools like ODI
What is the purpose of having stored procedures in a database?