Bonjour
je n'arrive pas à faire une condition avec un alias, est ce qu'il y a d'autre moyen pour le faire?
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9 select count(Statut_Contact) 'nbre', substring(date_derniere_modification,1,11) 'date_mod', Statut_Contact, dom_dom_id,dom_id from questionnaire inner join tmk_domaine on dom_lib=Statut_Contact where substring(date_derniere_modification,1,11) between @dd and @df and code_fichier=@code group by Statut_Contact,date_mod,dom_dom_id,dom_id --Msg 207, Level 16, State 1, Procedure total, Line 9 --Invalid column name 'date_mod'.
merci pour votre aide
Partager