Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Take last entry in group-by SQL?
Message
From
06/12/2000 02:57:49
 
 
To
05/12/2000 20:42:51
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00449211
Message ID:
00449827
Views:
13
>>Justok,
>>There is something wrong here. Group by takes the last entry.
>>Cetin
>
>

>
>Oh.. Then it is finished.. :))
>
>Well, In case to take the first occur value from natural order, would you tell me how to code?
>(This learn is for interest only, not my boss request.)
>
>Thankyou.

I had to do this once. What I did was:

select * from originaltable into cursor othercursor order by MyDesiredOrder


and then I can do the «group by select» from the OtherCursor because it is already naturally ordered the way it needs to be.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform