General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Get 1st record if duplicate records found?
field1,field2
abarca,2243
abarca,3314
abarca,2142
I need to get the 1st record: abarca, 2243.
SELECT * from table1 GROUP BY field1: returns the last record (abarca, 2142).
What would be the correct SQL statement to do so?
Thank you all!
Next
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