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...


How to display last 5 records in a table ?
With out Top key word and doing order by desc

Advance thanks

Answers were Sorted based on User's Feedback



How to display last 5 records in a table ? With out Top key word and doing order by desc Advance..

Answer / madhu


this is can acheieve by following query

select * from(select rowunum r,e.*from emp e) where
r>(select count(*)-5 from emp);

Is This Answer Correct ?    4 Yes 1 No

How to display last 5 records in a table ? With out Top key word and doing order by desc Advance..

Answer / priyank

select * from emp
minus
select * from emp where rownum <= (select max(rownum)-5
from emp)

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Informatica Interview Questions

how to load rows into fact table in data warehouse

0 Answers   Informatica,


What are the join types in joiner transformation?

1 Answers   Informatica,


What are the differences between oltp and olap?

0 Answers  


Kimball and Inmon methodologies?

2 Answers  


What are the static cache and dynamic cache in informatica?

0 Answers  


What are the issues that you have faced while moving your project from the Test Environment to the Production Environment?

1 Answers  


If one flat file contains n number of records., we have to load the records in target from 51 to 100.. how to use expressions in Informatica..?

6 Answers  


What is option by which we can run all the sessions in a batch simultaneously?

0 Answers   Informatica,


There are 4 source files which contains same metadata create target that should display the file name along with record please send answer with mapping

3 Answers   Wipro,


how can we load starting with 11th record of a table from source to target

6 Answers   IBM,


How will u find weather dimension table is big in size of a fact table?

1 Answers  


how the server recognises , if the session fails after loading the 100 records in to the target

2 Answers   TCS,


Categories