General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
>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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only