Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SELECT TOP ???
Message
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00396652
Message ID:
00396715
Views:
14
>>Mike,
>>Are all the records the same? You specify a * in the field list which implies there is more than the 1 field (descrip). If all the values of all the rows are the same, you could add a DISTINCT to your SQL statement.
>>
>>FWIW, VFP seems to be unique in how it implemented TOP. SQL Server returns a single row.
>>
>

>Larry,
>
>SQL Server will return the same result as VFP if you add WITH TIES to SELECT

Thanks for the memory jog. I knew there was a way to do this.

But in this case, SQL Server does have that extra keyword functionality that Mike was looking for, where VFP does not.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Previous
Reply
Map
View

Click here to load this message in the networking platform