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

the above one is for fetching last record and i think u can
decraese (use < symbol) the count and use it for fetching
nth record in a table.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define sqlca.

649


How to execute stored procedures?

622


What is alias in db2?

572


What is db2?

743


What is ibm db2 client?

523






What is runstats db2?

585


What is the reason behind not using select * in embedded sql programs?

603


What is the difference between cursor and select statement?

615


What is dbrm? What it contains? When it will be created?

595


What is the maximum size of varchar data type in db2?

645


Define data page.

634


What is a cursor in programming?

595


What is db2 bind?

640


What is reorg?

619


If I have a view which is a join of two or more tables, can this view be updateable?

694