Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TOP keyword replacement for sql/400

Status
Not open for further replies.

Ronze55

MIS
Jul 9, 2004
54
US
Hi

I am not sure if this is the correct forum to place my question in but here goes.

I am trying to emulate a webFOCUS report on the SQL/400. the webFOCUS report uses FST.Field. I can use

select TOP(1) * from table

normally but SQL/400 does not have the keyword TOP.

does anyone know what the keyword is or how I can reproduce the webFOCUS function FST

thanks in advanced
Ronze
 
mDNGHTpGMR

thanks for your responce.

FST is a function on webFOCUS very similar to count, or max

by saying FST.field1

I say that I want the record containing the first instance of field1 within a set

so i can say

fst.field1
by field2
by field3

field2 and field3 become the break points, sort of like group by.

I will look into ceiling.

thanks again
ronze
 
MdngtPgmr,

thanks for your link, the reference will come in handy!

Christina
 
Arrow

THANKS!

here is the query

select * from table1
fetch first 10 rows only

Ronze
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top