What is the query to find nth highest salary?
What is the use of cursors?
Answer Posted / ram
1. nth highest salary
-> select *from emp e where &n =(select count(distinct sal)
from emp m where e.sal <= m.sal);
2. -> Cursor.
When a query is executed in oracle, a result set is
produced and stored in the memory. Oracle allows the
programmer to access this result set in the memory through
cursors.
use a cursor?
Many times, when a query returns more than one row as a
result, we might want to go through each row and process
the data in different way for them. Cursor is handy here.
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What is informatica powercenter repository?
Clarify the aggregator change?
How can we remove the duplicates from flat file source?
Have you worked with/created Parameter file
Sequence generator, when you move from develoment to production how will you reset
r u done any partitions in ur project?
What does refresh system mean, and what are its distinctive choice?
What are the tasks that source qualifier perform?
can i any one explain me realtime healthcare project explanation..for interview .iam new to informatica .thanks in advance.
Do you find any difficulty while working with flat files as source and target?
Partition, what happens if the specified key range is shorter and longer
Explain what are the different types of transformation available in informatica. And what are the mostly used ones among them?
How to create or import flat file definition in to the warehouse designer?
COM components can be used in Informatica
how many types of dimensions are available in informatica?