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

quary for
1> fetch last record
2> fetch in reverse order
3> fetch last 5 row
4> fetch second last record (their is no primary key)
i think concept of count can be use for this in 4th

Answer Posted / sudipta

the 4th answer is(ignore the previous one)

db2=> with t1(a,b,c) as (select id,name,row_number()
over(order by id desc) as aa from tab1) select * from t1
where c=2

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define db2.

1120


Which is faster delete or truncate?

1131


What is query_cache_limit?

977


How to check table size in db2 sap?

1042


How do I add a column in db2?

1049


What is table space in db2?

1021


What is the use of dclgen in db2?

1085


Give the name of some fields form sqlca.

1089


Discuss about db2 bind?

1103


What is plan in cobol db2?

1141


How to check last update on table in db2?

1062


Define sqlca.

1118


How can record locking be achieved in those DB2 versions which do not support it?

1081


What is cursor stability in db2?

1363


What is the physical storage length of the data types: date, time, timestamp in the db2 database?

1161