Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Per kg rate
Message
 
 
À
14/11/2016 04:55:20
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows 7
Network:
Windows XP
Database:
MS SQL Server
Application:
Desktop
Divers
Thread ID:
01643341
Message ID:
01643348
Vues:
37
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform