cs_othinakiway
Messages postés30Date d'inscriptionlundi 7 avril 2008StatutMembreDernière intervention10 juin 2009
-
4 juin 2009 à 21:37
cs_othinakiway
Messages postés30Date d'inscriptionlundi 7 avril 2008StatutMembreDernière intervention10 juin 2009
-
6 juin 2009 à 01:14
comment se fait il qu'une requête s'exécute correctement sur l'analyseur de requête et provoque une erreur de syntaxe quand on l'introduit dans une commande (OLeDBCommand) , sachant que je l'ai tester avec un rapport CRystal report et sa a marché aussi . Voila la requête miracle :
select BH.nomB, sum(nbr_effectif)-(select sum(nbr_effectif) from besoin_emploi BE,entreprise E, secteur S, branche B, métier M, province P, région R
where BE.RS=E.RS and E.codeP=P.codeP and P.codeR=R.codeR and BE.codem=M.codeM and M.codeB=B.codeB and B.codeS=S.codeS and S.codeS=@codeSec and R.codeR=@codeRégion and annee=@annee and trimestre in('T1','T2') group by B.nomB having B.nomB=BH.nomB) as total from besoin_emploi BE,entreprise E, secteur S, branche BH, métier M, province P, région R
where BE.RS=E.RS and E.codeP=P.codeP and P.codeR=R.codeR and BE.codem=M.codeM and M.codeB=BH.codeB and BH.codeS=S.codeS and S.codeS=@codeSec} and R.codeR=@codeRégion}
group by BH.nomB
cs_casy
Messages postés7741Date d'inscriptionmercredi 1 septembre 2004StatutMembreDernière intervention24 septembre 201440 4 juin 2009 à 21:48
select BH.nomB, sum(nbr_effectif)-(select sum(nbr_effectif) from
besoin_emploi BE,entreprise E, secteur S, branche B, métier M, province
P, région R
where BE.RS= E.RS and E.codeP=P.codeP and P.codeR=R.codeR
and BE.codem=M.codeM and M.codeB=B.codeB and B.codeS=S.codeS and
S.codeS=@codeSec and R.codeR=@codeRégion and annee=@annee and trimestre
in('T1','T2') group by B.nomB having B.nomB=BH.nomB) as total from
besoin_emploi BE,entreprise E, secteur S, branche BH, métier M,
province P, région R
where BE.RS=E.RS and E.codeP=P.codeP and
P.codeR=R.codeR and BE.codem=M.codeM and M.codeB=BH.codeB and
BH.codeS=S.codeS and S.codeS=@codeSec }
and R.codeR =@codeRégion} group by BH.nomB
Ou sont les accolades ouvrantes correspondantes ????
cs_othinakiway
Messages postés30Date d'inscriptionlundi 7 avril 2008StatutMembreDernière intervention10 juin 20092 6 juin 2009 à 01:14
salut,
merci les amis pour vos réponse, ms finalement la mm requête a marché sans la moindre modification..Puuf c vraiment étrange ... ms bon je crois que l'erreur provient d'autre chose !!... ms je ne sais quoi !!... en tt k je suis heureux que tt va pr le mieux