Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question #2
Message
From
06/08/2009 07:01:35
 
 
To
06/08/2009 06:49:38
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Germany
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:
01416417
Views:
54
Good Agnes, better than mine
you can change
COUNT(c1 + c2 )

into 

count(*)  && just counting the number of records anyway

>Grgory,
>
>what do you think about
>
>DELETE FROM Schnaps;
> WHERE i1 IN ;
> (;
>  SELECT S.i1 ;
>   FROM Schnaps AS S;
>   INNER JOIN;
>    ( ;
>    SELECT c3, MIN(i1) AS i1;
>     FROM Schnaps ;
>     GROUP BY  1 ;
>     HAVING ( COUNT(c1 + c2 ) > 1) ;
>    ) AS AA ;
>   ON S.c3 == AA.c3;
>   AND S.i1>AA.i1;
> )
>
>
>?
>
>Agnes
Gregory
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform