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

please try this one and let me know....


select * from emp where :ws-rec-cnt = (select Count(*)
into :ws-rec-cnt from emp);

Is This Answer Correct ?    3 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which component is responsible for processing sql statements and selecting access paths?

1139


What is a db2 schema?

1241


What is the meaning concurrency in the db2 database?

1114


How do I add a column to a table in db2?

1112


What is the difference between drop table and delete table?

1221


What is the physical storage length of time data type?

1138


is it compulsory commitment control in journal?

2486


What is db2 catalog database?

1050


What do you mean by between and in? Is between inclusive of specified range values?

1093


Give a brief description of db2 isolation levels?

1078


How do you find the maximum value in a column in db2?

1112


can we view the access paths created by dbrm ? how ? thx

7114


How do I import a csv file into db2?

999


How to restart a DB2 program?

1912


What is the default page size of buffer pools?

1128