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 N rows in statement

Status
Not open for further replies.

medmed

IS-IT--Management
Mar 12, 2005
26
CH
Hi

I'm currently looking for an option to select the first 50 rows from a table. Within MSSQL the appropriate query would be: SELECT TOP 50 * FROM table

But as i have Pervasive 7.9, this is not supported. Does anybody has a workarounde?

Thanks very much
 
I don't think there's really a workaround. You might be able to limit the result set using a WHERE clause and an ORDER BY clause.

I would suggest upgrading to PSQL v10 (or at least v9). It has support for the TOP command and numerous other improvements. It's also a supported product. V7.9 went unsupported in July 2004.

Mirtheil
Certified Pervasive Developer
Certified Pervasive Technician
 
Hi mirtheil

Then I have to go the unconftable way... As we change to another system, we will not upgrade pervasive anymore.

Thank you!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top