Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01179984
Message ID:
01180068
Views:
21
>Once more, let it be said far and wide - Sergey is the SQL Man!
>
>Thanks Sergey it works wonderfully! This will be a keeper snippet.

You're welcome and here's another way to get the same result.
SELECT name, amount, official, date FROM cmoney cm1 ;
	WHERE (official = ?Official1 AND EXISTS( SELECT * FROM cmoney ;
			              WHERE name = cm1.name AND official = ?Official2)) ;
		OR (official = ?Official2 AND EXISTS( SELECT * FROM cmoney ;
			              WHERE name = cm1.name AND official = ?Official1)) ;
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform