You have a data set of 100 observations,how can you
restrict the output so that the output has only data from
row no. 10 to row no. 20

Answer Posted / amit gupta

SELECT *
FROM (SELECT ROWNUM srno, a.*
FROM emp a)
WHERE srno >= 10 AND srno <= 20

/

SELECT *
FROM (SELECT ROWNUM srno, a.*
FROM emp a)
WHERE srno between 10 and 20

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

explain the difference between alternate key, business key, foreign key, generated key, primary key, retained key and surrogate key ? : Sas-di

556


How sas treats the dsd delimiters?

730


what are informats in sas? : Sas-administrator

597


What are pdv and it functions?

612


do you need to know if there are any missing values? : Sas programming

563






What is the difference between INPUT and INFILE ?

768


What would be the result of the following SAS function (given that 31 Dec, 2000 is Sunday)?

693


Explain data step in SAS

638


Give e an example of..

1661


Explain the main difference between the sas procedures and functions? : Sas-administrator

550


How would you include common or reuse to be processed along with your statements?

1911


How might you use MOD and INT on numeric to mimic SUBSTR on character Strings?

762


What are SAS/ACCESS and SAS/CONNECT?

640


how will you locate the sas platform applications? : Sas-bi

590


describe about metadata object? : Sas-di

634