1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
| select XMLElement(name "Compte",
XMLAttributes(CPT.typeCompteId as "TypeCompte", Clt.clientId as "CodeClient", CPT.mnemonique as "Mnemonique",
Gr.groupeId as "GroupeId", CtrPr.centreProductionId as "ProductionId", CPT.compteId as "NumeroCompte",
AgFac.agragationfacturationId as "AgregationfacturationId", TrCtb.tiersComptableId as "TiersComptable", M.marcheId as "MarcheId",
Cpst.compensateurId as "CompensateurId"),
XMLElement(name "LibelleEdition",CPT.libelleEdition),
XMLElement(name "LibellePJ",CPT.libellePJ),
XMLElement(name "MessageAllouant",LT.messageAllouant)).getStringVal()
FROM Compte CPT, Client Clt, Groupe Gr, CentreProduction CtrPr, AGFACT AgFac, TiersComptable TrCtb, Marche M, Compensateur Cpst,
Entite Ent, Ticket T, LG_STCK LT
where CPT.clientId=Clt.clientId and Ent.EntiteId=Clt.EntiteId and Gr.GroupeId=Ent.GroupeId
and CtrPr.centreProductionId=CPT.centreProductionId and AgFac.compteId=CPT.compteId and CPT.tiersComptableId=TrCtb.tiersComptableId
and M.MarcheId=CPT.MarcheId and Cpst.compensateurId=CPT.compensateurId
and LT.ticketId=T.ticketId and T.compteId=CPT.compteId and CPT.compteId='C1' and CPT.mnemonique='edtg'
le probleme c'est que ce select me retourne une ligne repeter 9 fois.
aider moi svp à trouver la solution pour ne pas avoir de repition dans le resultat.
voila le resultat de cette requete:
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte>
<Compte TypeCompte="TC" CodeClient="Clt1" Mnemonique="edtg" GroupeId="Grp1" ProductionId="CP1" NumeroCompte="C1" AgregationfacturationId="AgrFct1" TiersComptable="TrCptb1" MarcheId="M1" CompensateurId="Cmpst1"><LibelleEdition></LibelleEdition><LibellePJ></LibellePJ><MessageAllouant>cgfhcvvbvb</MessageAllouant></Compte> |
Partager