Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Aggregate functions and other fields
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Novell 5.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01096186
Message ID:
01096201
Views:
15
>When I do a query ... lets say, "SELECT MAX(COST) AS COST, INVNO FROM INVOICES" ... what do I know about the value of INVNO in the result set? ENGINEBEHAVIOR is 70. In all the testing I have done, it always SEEMS to return the value from the record containing the MAX() value. However, I don't KNOW any specifics about the code that performs the fetch, so I don't know whether this is a reliable observation or not.

You'll get INVNO from the last physical record in the table not from the record with MAX(COST).
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform