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

What is bind plan?

1036


What are bind parameters in db2?

1020


What is ibm db2 used for?

1051


Outputs of explain are with matchcols = 0. What does this signify?

1041


How do you simulate the explain of an embedded sql statement in spufi/qmf?

1067


What is the use of dclgen in db2?

1059


Before you give the explain statement, what are the prerogatives?

1012


What is difference between rollback and commit?

1133


What is the use of value function?

1120


How can you do the explain of a dynamic sql statement?

1054


How will you return the number of records in table?

915


Mention the definition of cobol in varchar field.

1225


Mention the different locking levels that are available in db2.

1116


What are the 2 sqlcodes that are returned?

1174


How does coalesce work?

997