Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to use standard SQL statement
Message
De
11/12/2006 14:19:02
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
Database:
Visual FoxPro
Divers
Thread ID:
01175780
Message ID:
01176635
Vues:
9
>You can't do that, try:
>
>DELETE T1;
>FROM t1 ;
>INNER JOIN (SELECT left(rida,2) AS Rida2,;
>       MAX(month) AS Mnt FROM  t2 ;
>       group by 1) Tbl1;
>ON left(t1.rida,2) = Tbl1.Rida2 AND;
>   t1.Month        = Tbl1.Mnt
>
This deletes MAX(month) rows.
However, I want to delete all other rows so that only MAX(month) rows remain.
There was NOT IN clasue in my original query.

t1.Month # Tbl1.Mnt

condition works
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform