Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question #2
Message
From
07/08/2009 02:59:47
Lutz Scheffler (Online)
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
 
 
To
06/08/2009 15:21:54
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01416409
Message ID:
01416683
Views:
56
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]
Previous
Reply
Map
View

Click here to load this message in the networking platform