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 32 33 34 35 36 37 38 39 40 41 42
| CREATE VIEW SIEGEV
(
PsnId,
RaisonSociale,
Siret,
Naf,
VisiteurId,
TourneeId,
Adresse1,
Adresse2,
Adresse3,
CodePostal,
Ville,
Tel,
Gsm,
Fax,
Courriel
)
As Select
x.PsnId,
x.RaisonSociale,
x.Siret,
x.Naf,
x.PsnId_Visiteur,
x.TourId,
y.Adresse1,
y.Adresse2,
y.Adresse3,
y.CodePostal,
y.Ville,
y.Tel,
y.Gsm,
x.Fax,
y.Courriel
FROM ENTREPRISE AS x
INNER JOIN
PERSONNE AS y
ON x.PsnId = y.PsnId
INNER JOIN
SIEGE AS z
ON x.PsnId = z.PsnId
; |
Partager