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 / pooja

CREATE TABLE B
AS
SELECT *
FROM
(SELECT *
FROM
(SELECT *,ROWNUM R
FROM A)
ORDER BY R DESC)
WHERE R=1;

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Mine is Insurance Domain, So interviewer asked about terms like underwriting, disbursement amt, Reinsurance

1590


What does role playing dimension mean?

627


What is meant by a domain?

630


can anyone suggest best free Talend data integration training online

1262


How can you differentiate between powercenter and power map?

623






have u done any performance tuning? how u ll do?

1857


How many dimensions are there in informatica?

626


Explain what are the different types of transformation available in informatica.

573


What is rank transformation in informatica

690


What is the difference between a connected look up and unconnected lookup?

572


draw informatica architecture 8.6 ?

3468


How to convert multiple rows to single row (multiple columns) in informatica

893


Which are the different editions of informatica powercenter that are available?

557


What is meant by pre and post session shell command?

624


Clarify the aggregator change?

595