1 2 3 4 5 6 7 8 9 10 11 12 13
| CREATE VIEW dbo.V_RgmtDemandeur
AS
SELECT IdDemandeur, IdAffaire, IdSourceDdeur, CodeTypeDdeur, EstDemandeur, EstParticipant, EstAutre, CategDem, Civilite, NomDem, Prenom, Adresse1, Adresse2, CP, Ville, ObtPermis, SignMaire, Residence, BatExiste, MontantParticip, TxParticip, DateParticipation, DateAccord, ReportPaie, DateReportPaie, Relance, PcMontant1 AS PcMontant, Montant1 AS Montant, Reglement1 AS Reglement, AppelFond1 AS AppelFond,DateReg1 AS DateReg
FROM dbo.T_Demandeur
UNION ALL
SELECT IdDemandeur, IdAffaire, IdSourceDdeur, CodeTypeDdeur, EstDemandeur, EstParticipant, EstAutre, CategDem, Civilite, NomDem, Prenom, Adresse1, Adresse2, CP, Ville, ObtPermis, SignMaire, Residence, BatExiste, MontantParticip, TxParticip, DateParticipation, DateAccord, ReportPaie, DateReportPaie, Relance, (100 - PcMontant1), Montant2, Reglement2, AppelFond2, DateReg2
FROM dbo.T_Demandeur
WHERE (Montant2 > 0) |
Partager