Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Obtained %tage and update
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 XP
Database:
MS SQL Server
Application:
Web
Miscellaneous
Thread ID:
01473373
Message ID:
01473376
Views:
39
This message has been marked as the solution to the initial question of the thread.
>How i can obtaind %tage and update table in sql
>
>
>select res
>set order to stuid
>go top
>do while .not. eof()
>ags=tnum/100
>ags2=round(sobt/ags,2)
>repl sperc with ags2
>
>skip
>endd
>
><<<to things select wrong Database:	MS SQL Server  	Application:Web
> 
>correct is :Database:	vfp	Application:desktop
update Res set SPerc = IIF(tNum = 0, 0, round((Sobt / tNum) * 100,2))
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform