Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select Max(field1) + its corresponding fields?
Message
 
 
To
22/10/2001 11:23:08
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00571652
Message ID:
00571672
Views:
24
>>If you have an index on Field2, the following code will give you all records, which have max Field2:
>>
>>select field1, field2 from Table1 where field2 in (select max(field2) from table1)
>
>Nadya,
>
>It seems to me that the SELECT you posted doesn't require any index (except for optimization).
>
>Hilmar.

Yes, this is what I meant.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform