Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Select with high date
Message
De
19/09/2005 07:20:20
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/09/2005 07:17:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Database:
Visual FoxPro
Divers
Thread ID:
01050805
Message ID:
01050806
Vues:
19
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform