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 kind of issue you will get in environment? (we ll call help desk to raise ticket rite?
What is a passive transformation?
differences between service based and product based?
Mention few power centre client applications with their basic purpose?
What is data movement mode in Informatica and difference between them?
design of staging area?
Does an informatica transformation support only aggregate expressions?
Informatica settings are available in which file?
I am not able to connect to the domain with the client although all services and databases are up and there is no network issue?
How does the aggregator transformation handle null values?
what is degenerated dimension?
How to display session logs based upon particular dates. If I want to display session logs for 1 week from a particular date how can I do it without using unix. ?
Why update strategy and union transformations are active? Explain with examples.
Hello , I am unable to work with SQL transformation at least. Where do i need to give connection for sql transformaton ? At session level there is no property . I have created a SQL Transformation and chosen query mode. But do i need to pass connection information to it ? I don't know where do i need to write a query ? I have written a query in file and that file path i gave in the properties of SQL Transformation. But it is not working. Could any one of you please let know how can i work with SQL Transformation? Advance Thanks.
tell me 5 session failure in real time how can you solve that in your project?