Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL question #2
Message
From
07/08/2009 03:09:10
Walter Meester
HoogkarspelNetherlands
 
 
To
07/08/2009 03:02:14
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:
01416685
Views:
47
Agnes,

Did you checkout this one:
SELECT * ;
	FROM Schnaps ;
	WHERE C3 NOT IN (SELECT C3 FROM (SELECT DISTINCT * FROM Schnaps) X GROUP BY C3 HAVING COUNT(*) > 1) OR ;
				NOT EXISTS(SELECT 1 FROM Schnaps X WHERE c3 = Schnaps.c3 AND iOrder < Schnaps.iOrder)
*Update* Just taking a second look at cetins one... Yeah that seems simpler than the above.



Walter,

>Hi Walter,
>
>thank you.
>
>looks like we all have the focus to much on the positive deletion set. Cetins solution in message#1416554 with the inverted set is much smarter.
>Agnes
Previous
Reply
Map
View

Click here to load this message in the networking platform