Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Parameter and variable differences

2004


Hi all, Can you please send me the Dimensions and fact tables which are used in mutual fund project. and please send me the brief summary about the project. Please do the needful.

2253


Can we change Dynamic to Static or Persistent cache? If so what happens?

2146


tell me 5 session failure in real time how can you solve that in your project?

2183


Which version configuration tool used in ur project?

3180


What do you mean by worklet?

1017


What are the new features of informatica 9.x in developer level?

936


What is the different lookup cache(s)?

1033


What is the difference between writing a joiner query in ANSI style and THETA style?

2319


Write the program through which the records can be updated?

935


where to store informatica rejected data? How to extract the informatica rejected data?

954


What are the different lookup cache(s)?

1032


Explain load alternative records / rows into multiple targets - informatica

1099


what kind of issue you will get in environment? (we ll call help desk to raise ticket rite?

1996


How does a rank transform differ from aggregator transform functions max and min?

1143