vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| Hi, Is there a way to display just the first five rows of the query stt result in DB2. I know that there is something called select Top 5 * from tablename in SQL Server 2000. Is there a wayaround, if there are no stts in DB2, ie if we can use two or three DB2 sql stts to achieve this result. -Thanks Kangan |
| |||
| select * from address order by name fetch first 5 rows only Kangan wrote: > Hi, > Is there a way to display just the first five rows of the query stt > result in DB2. I know that there is something called select Top 5 * > from tablename in SQL Server 2000. Is there a wayaround, if there are > no stts in DB2, ie if we can use two or three DB2 sql stts to achieve > this result. > -Thanks > Kangan |
| |||
| Try: select .... from table .... fetch first 5 rows only HTH, Pierre. Kangan wrote: > Hi, > Is there a way to display just the first five rows of the query stt > result in DB2. I know that there is something called select Top 5 * > from tablename in SQL Server 2000. Is there a wayaround, if there are > no stts in DB2, ie if we can use two or three DB2 sql stts to achieve > this result. > -Thanks > Kangan -- Pierre Saint-Jacques IBM DB2 Cerified Solutions Expert - Administration SES Consultants Inc. |