Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group By missing or invalid?
Message
 
 
To
29/11/2005 16:01:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01072942
Message ID:
01073066
Views:
18
>>>>It's not a GROUP BY but the same rule applies, only aggregate functions can be used.
>>>>
>>>>
SELECT MAX(trackrcd.date), MAX(ALLTRIM(trackrcd.t_s_num)) FROM trackrcd ;
>>>
>>>I need the specific trackrcd.t_s_num that belongs to the Max(date), so I don't think that will work.
>>
>>
>>In your query in VFP6 t_s_num is not returned from a record with MAX(trackrcd.date) but from last physical record that meets filter conditions.
>
>Okay, I will be working on rewriting this to be correct. < s > but it seamed(sp?) to work. Maybe they did not use it very much, so I did not know. Thanks again for the info.

You will get correct result in VFP6 as along as records in the table are added in the chronological order.
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform