Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
AS Clause
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00409807
Message ID:
00409833
Vues:
30
Hi Jim,

>>When i execute the folowing SQL query, i get the error colomn "WTG"not found.
>>
>>SELECT detail.avr_ari,;
>> iif(Detail.avr_wtg=.t.,'J','N') as WTG;
>>FROM general!detail;
>>WHERE WTG='J'
>>
>>Is this an impossible kind of query, to include an expressionalias in the WHERE Clause ?
>>
>>Any idea's how to solve this ?
>>
>
>Bjorn,
>
>The WHERE clause of SELECT si applied to the source tables, there is no fild named WTG in the source fields. You can change it to;
>
>WHERE Detail.avr_wtg = "J"
>

This will cause a data-type mismatch. If he's testing against the result of the iif(), he's got to use the HAVING clause.
Bill Armbrecht
VFP MCP
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform