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
how many types of dimensions are available in informatica?
What is olap (on-line analytical processing?
What differs when we choose the sorted input for aggregator transformation?
What is the use of an aggregator cache file?
Explain constraint based loading in informatica
i had a source containing business,sales,details column and i have to load it to a target but i have some bad records in it , but i have to load 70% of business records and 50% of sales and 95% of details records excluding bad records to achieve this what should be done and what all logic and tx should be used can anyone help? thanks in advance
What is decode in static cache?
What is a rank transform?
Define update strategy?
Parameter and variable differences
Under what conditions selecting sorted input in aggregator will still not boost session performance?
Define Pmrep command?
How do you update the records with or without using update strategy?
What is the sequence generator transformation in informatica?
TELL ME ONE COMPLEX MAPPING IN UR PROJECT? chandumba2005@gmai.com