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

If anyone has IBM Certification Dumps pls forward to me & also let me know what are the Certification Codes that are available in DB2

1974


Which command is used to connect to a database in DB2 ? Give the Syntax.

1029


What r the comman abends in db2, jcl and cobol???????

2196


What is a bind in db2?

980


How will you return the number of records in table?

879


What are the 2 sqlcodes that are returned?

1128


What is view db2?

1004


What does db2 blu stand for?

1100


What are the two types of logging in the db2 database? Explain them.

1016


What is reorg and runstats in db2?

1142


Explain packages.

1055


What is explain in db2?

958


How to find the maximum value in a column in the db2 database?

1014


What are union and union all?

920


What is syscat in db2?

949