Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Per kg rate
Message
 
 
To
14/11/2016 04:55:20
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Miscellaneous
Thread ID:
01643341
Message ID:
01643348
Views:
36
>Thanks Naomi,
>
>At this line
>
>
>round(sum(amount)/iif(sum(weight)=0, null, sum(weight)),2)  as kgrt
>
>
>it says:
>
>Msg 102, Level 15, State 1, Line 2
>Incorrect syntax near '='.
>Msg 156, Level 15, State 1, Line 9
>Incorrect syntax near the keyword 'as'.

Are you running in SQL Server or VFP? If the forner, what is your SQL Server version?

Also, looks like I missed one ), e.g. it should be

round(sum(amount)/iif(sum(weight)=0, null, sum(weight))),2) as kgrt
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