Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
View definition has been changed ERROR
Message
De
12/05/2005 17:58:31
 
 
À
12/05/2005 17:52:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01013627
Message ID:
01013646
Vues:
18
Yes, you're correct that IIF() causes the problem because it returns different numeric format in each case. You can try
ROUND(IIF((.NOT.cmflag.AND.cmpro),(grpval*((cmfirstweight)/100)*(harmony/100))*thrfreqval,0.0000),0) AS ale_pro,;
The goal is to get the same numeric format regardless if condition in IIF() is false or true.

>I noticed that I start getting teh error after I added the IIF() in the second views.
>
>OK, the select part only, View 1
<snip>>
>View 2
>-------
>
>SELECT IIF((cmflag.AND..NOT.cmpro),ROUND((grpval*((cmfirstweight)/100)*(harmony/100))*thrfreqval,0),0.0000) AS ale_cur,;
>  IIF((cmflag.AND.cmpro),ROUND((grpval*((cmfirstweight)/100)*(harmony/100))*thrfreqval,0),0.0000) AS ale_imp,;
>  IIF((.NOT.cmflag.AND.cmpro),ROUND((grpval*((cmfirstweight)/100)*(harmony/100))*thrfreqval,0),0.0000) AS ale_pro,;
>  IIF((.NOT.cmflag.AND..NOT.cmpro),ROUND((grpval*((cmfirstweight)/100)*(harmony/100))*thrfreqval,0),0.0000) AS ale_non,;
>  ROUND(cmfirstweight/100,2)*ale_max AS cmfinalweight, Q_risk_ale3.*;
> FROM ;
>     VIew1;
> ORDER BY VIew1.vulname, VIew1.grpname,;
>  VIew1.thrname, VIew1.cmref
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform