How can you find the 2nd Highest salary in a file department wise in abinitio?
Answer Posted / murali krishna udayagiri
Yes Vital is correct. This can be acheived using SCAN
component with only one variable.
1.Input_file
2.Sort with in group (dno asc,sal desc)
3.scan
###############################################
type temporary_type=record
integer(4) temp1;end;
temp :: initialize(in) =
begin
temp.temp1::0;
end;
out :: scan(temp, in) =
begin
out.temp1 :: temp.temp1 + 1;
end;
out :: finalize(temp, in) =
begin
out.sal:: in.sal;
out.dno :: in.dno;
out.temp1 :: temp.temp1;
end;
out :: output_select(out) =
begin
out::out.temp1 == 2;
end;
###############################################
4.Output_file
Thanks,
Murali Udayagiri
Mail id: udayagiri.murali@gmail.com
| Is This Answer Correct ? | 3 Yes | 8 No |
Post New Answer View All Answers
What is the max core of a component?
When running a stored procedure definition script how would you guarantee the definition could be rolled back in the event of problems?
What are differences between different versions of co-op?
What are the differences between informatica and abinitio?
Give one reason when you need to consider multiple data processing?
Define ramp limit in ab initio?
Have you used rollup component? Describe how.
Explain the ab initio etl tool in high level?
How is the partitioning with key different from round robin partition?
How to add default rules in the transformer?
What are the co> operating system’s assorted library of integrated components?
What will be the skew for, input file->partition by key-> partition by round robin->output file
How to execute the graph from start to end stages? Tell me and how to run graph in non-Abinitio system?
How do you truncate a table?
What is de-partition in abinitio?