Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL question #2
Message
De
07/08/2009 02:59:47
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
06/08/2009 15:21:54
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Divers
Thread ID:
01416409
Message ID:
01416683
Vues:
55
Hi Cetin,

you are right.

I have focused to much on the definition of the superfluous records. Your way to define the records to keep is better.

Agnes

>When you have the select, delete is easier.
>
>
Select t1.* From Schnaps t1 ;
>  INNER Join ;
>  (Select Min(iOrder) As iOrder From Schnaps Group By c3) t2 ;
>  ON t1.iOrder == t2.iOrder
>
>
>Delete From Schnaps Where iOrder Not In ;
>   (Select Min(iOrder) As iOrder From Schnaps Group By c3)
>
>
>IMHO message#1416414 is more complex than needed.
>
>Cetin
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform