Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Convert into sql
Message
 
 
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 2000 Pro
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01473321
Message ID:
01473327
Views:
41
>Can these codes change into sql.
>
>
>sele res
>SET ORDER TO CODE
>GO TOP
>DO WHILE .NOT. EOF()
>IF PERC>=80 .AND. PERC<=100
>	REPL GRADE WITH "A+"
>ENDIF
>IF PERC>=70 .AND. PERC<79.99
>	REPL GRADE WITH "A"
>ENDIF
>.............
>
Try UPDATE-SQL command
update Res SET Grade = ICASE(BETWEEN(Perc, 80,100), 'A+', Perc >= 70, 'A',...)
What do you want for the case when Perc > 100 ?
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform