* Bonjour *
Je fais une requête toute simple :
Code SQL : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5 SELECT DISTINCT totemadm_TBIMMOFI.IMM_CODE, totemadm_TBIMMOPL.D_DEBUT, totemadm_TBIMMOFI.LIBELLE01, totemadm_TBIMMOFI.LIBELLE02, totemadm_TBIMMOFI.LIBELLE03, totemadm_TBIMMOFI.LIBELLE04, totemadm_TBIMMOFI.A01_IMMO, totemadm_TBIMMOCP.GEN_CODE, totemadm_TBIMMOPL.BASE_AMORT, totemadm_TBIMMOCP.GEN_CODE FROM totemadm_TBIMMOAM, totemadm_TBIMMOCP, totemadm_TBIMMOFI, totemadm_TBIMMOPL WHERE totemadm_TBIMMOFI.ID_IMMO = totemadm_TBIMMOPL.ID_IMMO AND totemadm_TBIMMOPL.ID_IMMO = totemadm_TBIMMOCP.ID_IMMO AND totemadm_TBIMMOCP.ID_IMMO = totemadm_TBIMMOAM.ID_IMMO;
Cependant cela se complique dans le sens où je sélectionne deux fois le champ GEN_CODE ... Cependant il y a une fois où je veux ses valeurs lorsque NUM_LIGNECPT (qui se trouve également dans totemadm_TBIMMOCP) = 01 et la deuxième fois sa valeur quand NUM_LIGNECPT = 02 ...
J'aimerai que cela s'affiche sur la même ligne ...
Comment puis-je faire?
Vous manque t-il des précisions?
Merci d'avance
Partager