Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Select with high date
Message
From
19/09/2005 07:20:20
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
19/09/2005 07:17:44
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01050805
Message ID:
01050806
Views:
15
This message has been marked as the solution to the initial question of the thread.
>Hi
>
>I want make one select . i have this table :
>
>
>
>Name          date
>John          01/01/2005
>Peter         08/01/2005
>John          15/01/2005
>James         22/01/2005
>Peter         31/01/2005
>Bill          02/05/2005
>
>
>I want select result is :
>
>Name          date
>John          15/01/2005
>James         22/01/2005
>Peter         31/01/2005
>Bill          02/05/2005
>
>
>
>that means that i only want the date for each person more next today .
>
>Thanks
select * from myTable t1 ;
 where myDate = (select max(myDate) from myTable t2 where t1.Name == t2.Name)
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform