Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT TOP ???
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00396652
Message ID:
00396715
Vues:
13
>>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform