Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using an sql statement as a condition in another action
Message
 
To
31/03/2000 15:01:12
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00353571
Message ID:
00353810
Views:
13
>I have a table with three fields, including one logical. I want to change the logical to .T. for every record that contains a unique entry. I've tried REPLACE MyTABLE.FIELD3 WITH .T. FOR (SELECT DISTINCT FIELD2 FROM MyTABLE) but I get a "Function name is missing )." What am I doing wrong?

Why not do a IIF(this,.t.,.f.) as my_field in your select segment? Then you let SQL do the work on the front end.

__Stephen
Previous
Reply
Map
View

Click here to load this message in the networking platform