kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12382 Topics: 75 Location: San Jose
|
Posted: Thu Sep 04, 2003 5:27 am Post subject: |
|
|
vani,
If you want to do this programmatically, declare cursor and fetch it for 100 times.
If it is via spufi, you can change the defualts,(max lines) to 100, so that it will display only 100 rows
In Qmf you can use the verb ROWLIMIT=100, so that you can get only 100 records
Also you can try this query even though I would not recommend it
Code: |
SELECT COL1
,COL2
...
FROM TABLE A
WHERE 100 > (SELECT COUNT(*)
FROM TABLE B
WHERE A.PRIMARY KEY < B.PRIMARY KEY)
|
Hope this helps..
cheers
kolusu |
|