We have 100 records in table how to fetch 10 th record?

Answer Posted / vimal

Select XXXXX
into table t_Rows
from YYYYYYY
up to 1 rows
order by XXXX descending.

XXXX---column name
YYYY---table name

For 'SELECT .... UP TO 1 ROWS' database selects all of the
relevant records that are defined by the WHERE clause or
lack of, applies any aggregate, ordering or grouping
functions to them and then returns the first record of the
resultant result set.

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are the function code handles in flow logic?

701


Some Realtime Examples on Exits .

1811


What is function group?

714


Type casting and error handling

1014


What is the difference between get and get late?

691






Give examples of transparent table?

801


When, how and how would you control changes to standard SAP objects.

1510


What is the full form of spro? : sap abap hr

807


What are the difference between pool tables and transparent tables?

715


What are interface/conversion programs in SAP?

696


What is asynchronous and synchronous update?

670


What is the relationship existing between the various data elements? : abap data dictionary

674


What is the difference between the function module and a normal abap/4 subroutine? : abap modularization

783


How do you document abap/4 programs? Do you use program documentation menu option?

794


If I want to execute a program only in background not in foreground is there any option for this? : abap bdc

648