Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
I want only one record in my query.
Message
 
To
04/06/1999 14:33:04
Martin Thibault
Minière Québec Cartier
Port-Cartier, Quebec, Canada
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00226574
Message ID:
00226696
Views:
23
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform