Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an sql statement as a condition in another action
Message
From
01/04/2000 06:47:48
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00353571
Message ID:
00353874
Views:
12
>
>Yeah, it all needs some playing around usually.
>There also may be the different solutions with REPLACE, for example
>to build the temporary UNIQUIE index, then REPLACE ALL field3 with .t.
>

Hi Nick, :)

yes, ya right. There are a lot of ways to do that.
Here is one more solution:
UPDATE MyTable SET Field3 = .F.
* Or REPLACE ALL Field3 WITH .F.
UPDATE MyTable SET Field3 = .T. WHERE NOT EXISTS( SELECT * FROM MyTable t2 WHERE MyTable.Field2 = t2.Field2 AND t2.Field3)
Alex
Alex
Previous
Reply
Map
View

Click here to load this message in the networking platform