Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
I want only one record in my query.
Message
 
À
04/06/1999 14:33:04
Martin Thibault
Minière Québec Cartier
Port-Cartier, Québec, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00226574
Message ID:
00226696
Vues:
22
>I can't use this method because i must do a query to pass to SQL SERVER.

One other approach is to try the following...
I am not at my SQL box, so I can't actually
do the command but could act as a baseline...


select
identity(int,1,1) UniqueID, a.*
from
yourtable a
where
fld = 'test'
having
UniqueID = 1

You might have to play with the having (or even where) to

where identity( int, 1, 1 ) = 1 AND fld = 'test'
or
having identity( int, 1,1 ) = 1
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform