Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
This sql query can be short
Message
From
21/07/2010 22:59:25
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01473412
Message ID:
01473425
Views:
29
>>i want to this sql query short and speedy for update records.
>>
>>UPDATE res SET p01="Fail"  WHERE p01<m01 
>>UPDATE res SET p01="Pass" WHERE p01>m01 
>>
>>UPDATE res SET p02="Fail" WHERE p02<m02 
>>UPDATE res SET p02="Pass" WHERE p02>m02  
>>UPDATE res SET p03="Fail" WHERE p03<m03 
>>UPDATE res SET p03="Pass" WHERE p03>m
>>......up to  30
>>
>
>Update res 
>SET po1 = IIF(po1<mo1, "Fail","Pass"), po2 = IIF(po2<mo2, "Fail", "Pass"), etc.
Nomi:
i have also :p01>m01
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform