Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Problem
Message
From
14/06/1999 11:47:32
Kenneth Downs
Secure Data Software, Inc.
New York, United States
 
 
To
14/06/1999 11:17:53
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00229451
Message ID:
00229467
Views:
14
>Please help me to write following sql. I am confused about how
>to get it.
>following is a problem and the sample data set
>
>code cparentid ddate cdesc
>
>01 10 01/01/99 ABC
>02 10 05/01/99 DEF
>03 10 03/01/99 PQR
>04 20 04/01/99 PPP
>05 20 06/01/99 KOP
>06 20 03/01/99 RAP
>
>Now, I want to get the details of that record which has highest
>date in every group.(cparentid)
>

Mark,

SELE cparentid,max(ddate) from MyTable GROUP BY cparentid
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform