Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Records matching MAX(Date)
Message
 
 
To
16/08/2002 08:35:35
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00690278
Message ID:
00690410
Views:
16
>>That's a simple case. If you would have several max date records, you would have several records.
>>
>>But what if you need to find only one (or few) records with maximum date for each particular group, say, by Town?
>
>If you're searching for 'Nadya' and there are several 'Nadya' you'd get all of them. If you want to search for 'Nadya Nosonovsky' then be more specific and use 'and' to include 'Nosonovsky'.
>Cetin

Here is what I meant:

select town, max(date) as MaxDate from FilingDates group by Town into cursor MaxDates

select * from FilingDates ... ???

We need to select info from the table, where we would have record for each group with MAX date.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform