Update create.sql

parent e480f7d0
...@@ -128,21 +128,22 @@ vPersonnel(Union(Projection(Assistant, nom, prenom, ddn, adresse, numero, specia ...@@ -128,21 +128,22 @@ vPersonnel(Union(Projection(Assistant, nom, prenom, ddn, adresse, numero, specia
/* /*
CREATE VIEW Personne (nom, prenom, ddn, adresse, numero) AS CREATE OR REPLACE VIEW Personne AS
SELECT (C.nom, C.prenom, C.ddn, C.adresse, C.numero) SELECT C.nom, C.prenom, C.ddn, C.adresse, C.numero
FROM Client C FROM Client C
UNION ALL UNION ALL
(SELECT (A.nom, A.prenom, A.ddn, A.adresse, A.numero) (
SELECT A.nom, A.prenom, A.ddn, A.adresse, A.numero
FROM Assistant A FROM Assistant A
UNION ALL UNION ALL
SELECT (V.nom, V.prenom, V.ddn, V.adresse, V.numero) SELECT V.nom, V.prenom, V.ddn, V.adresse, V.numero
FROM Veterinaire V); FROM Veterinaire V);
CREATE VIEW Personnel (nom, prenom, ddn, adresse, numero, specialite) AS CREATE OR REPLACE VIEW Personnel AS
SELECT (A.nom, A.prenom, A.ddn, A.adresse, A.numero, A.specialite) SELECT A.nom, A.prenom, A.ddn, A.adresse, A.numero, A.specialite
FROM Assistant A FROM Assistant A
UNION ALL UNION ALL
SELECT (V.nom, V.prenom, V.ddn, V.adresse, V.numero, V.specialite) SELECT V.nom, V.prenom, V.ddn, V.adresse, V.numero, V.specialite
FROM Veterinaire V; FROM Veterinaire V;
*/ */
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment