Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Invalid Column Name Error
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01435010
Message ID:
01435062
Vues:
24
I dont't know what CTE is

>>Ok then I'm not sure of the best way to accomplish this. I need to add an option to only include records where OpenQty < > 0.
>>
>>
>>
>
>Use CTE or derived table approach as I posted.
>
>>>You can not use fields created in the query in the WHERE clause. The only place where you can use new fields is ORDER BY clause.
>>>
>>>You may either repeat the same condition in the where clause that creates this field or remove this condition from your original query, use your original as derived table or CTE and add an extra condition to it.
Everything makes sense in someone's mind
public class SystemCrasher :ICrashable
In addition, an integer field is not for irrational people
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform