They are supposed to return the first and last value of the field for each group, but I personally never see them working reliably ...
So, the short answer is: forget it.
Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
They do work ... it's just that the meaning of "First" or "Last" aren't what intuitively make sense. To me they should mean that "First" will return the value on the first displayed record and similarly, "Last" should be the value on the last displayed record. (Analagous definitions for grouped records)
What they appear to mean however is "first or last retrieved from the source". Where the record containing the First or Last value actually ends up in the result is dictated by Order By or default sort ordering rules so it may not (probably won't) appear as the "First" or "Last" record.
Tnx for the replies,
The reason for asking was indeed that the outcome of Last and First resulted in a no so predictable resultset... Leaving them out seems like a safe thing to do. But Golom, tnx for the info.
Pampers
There is only one way to change a diaper - fast
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.