Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Vfp sql question
Message
From
25/09/2000 16:16:13
 
 
To
25/09/2000 12:29:40
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00420493
Message ID:
00420640
Views:
16
>I am trying to select distinct records from a sql statement in vfp.
>But the distinct keyword only works on the whole record.
>My question is there a way to limit records by a distinct column in vfp6.0? Thanks Eric

SELECT field1, field2, field3
FROM MyTable
WHERE field1 in (SELECT DISTINCT field1 FROM MyTable)

BOb
Previous
Reply
Map
View

Click here to load this message in the networking platform