Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Max date
Message
 
À
11/01/2006 20:44:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
01085916
Message ID:
01087630
Vues:
5
Select policy,exp_mod,max(eff_date) from table exp_mod_table ;
group by policy,exp_mod into cursor xxx


Try this:

SELECT policy, max( eff_date ) as eff_date FROM table exp_mod_table GROUP BY policy INTO CURSOR xxx

SELECT e.policy, e.exp_mod, e.eff_date FROM exp_mod_table e INNER JOIN xxx ON xxx.policy = e.policy and xxx.effdate = e.eff_date INTO CURSOR yyy
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform