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:
00396712
Vues:
10
This message has been marked as the solution to the initial question of the thread.
>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
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform