i have oracle table A and target B. i don't know how many
records. i want get get last record in table A as first record
in target table B. write a sql query?
Answer Posted / dilip ingole
by using with clause
WITH DATA AS(SELECT NUM,ROWNUM RN ,COUNT(1)OVER() CNT FROM A)
SELECT NUM,RN FROM DATA WHERE RN=1
UNION
SELECT NUM,RN FROM DATA WHERE RN=CNT;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is a grid in Informatica?
Write the advantages of partitioning a session?
In What Situations we can use MappingParameters ,Mapping Variables AND Session Parameters in REAL TIME.
What is a predefined event?
What is native users?
What is a filter transformation?
Differentiate between joiner and lookup transformation?
What is meant by LDAP users?
what is diff b/t sorter t/r and agg have the option sorter property...
Separate from an archive server and a powerhouse?
What are the steps involved in the migration from older version to newer version of Informatica Server?
Performance tuning( what you did in performance tuning)
Differences between connected and unconnected lookup?
What is the way to execute pl/sql script using informatica mapping?
Is there any target staging area in informatica not staging area