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 cloudant database?

1158


What is temporal table in db2?

1102


What is the usage of open cursor command?

1151


What is access path in db2?

1044


What is the difference between bind and rebind in db2?

1513


What is an instance database?

1098


How to check last update on table in db2?

1101


Define predicate?

1204


What are the prerogatives?

1130


What are db2 tables?

1167


What are sqlcodes –803,-805, -811, -818,-904,-911,-913,-101, +100?

1237


Mention some fields that are a part of sqlca.

1099


What is the difference between cursor stability and repeatable read isolation levels?

1239


Why do we bind in db2?

1276


List down the types of triggers in the db2 database?

1079