Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by problem
Message
From
28/03/2003 11:21:14
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00771194
Message ID:
00771362
Views:
18
>>>Hi All,
>>>
>>>How to get this working in VFP8 without setting ENGINEBEHAVIOR TO 70 ?
>>>
>>>
Select cauktcid, DTOC(regdate) as datum from auktlogg group by 1 into cursor cTempAuktion
>>>
>>>I want to have one record for each cauktid in table auktlogg with the date.
>>
>>And what about DISTINCT clause? Try this:
>>
>>
>>Select distinct cauktcid, DTOC(regdate) as datum from auktlogg into cursor cTempAuktion
>>
>>
>>Maybe it will work for you :)
>>
>>Janusz Czudek
>>WORD Software
>>http://www.wordosft.com.pl
>
>I tried that, but it gives me all distinct values of cauktid and datum together

That's right. The same result will return this statement (it'll work on VFP8):
Select cauktcid, DTOC(regdate) as datum from auktlogg group by 1,2 into cursor cTempAuktion 
And what do you want to get?

Janusz Czudek
WORD Software
http://www.wordsoft.com.pl
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform