Update create.sql

parent e480f7d0
......@@ -128,21 +128,22 @@ vPersonnel(Union(Projection(Assistant, nom, prenom, ddn, adresse, numero, specia
/*
CREATE VIEW Personne (nom, prenom, ddn, adresse, numero) AS
SELECT (C.nom, C.prenom, C.ddn, C.adresse, C.numero)
FROM Client C
UNION ALL
(SELECT (A.nom, A.prenom, A.ddn, A.adresse, A.numero)
CREATE OR REPLACE VIEW Personne AS
SELECT C.nom, C.prenom, C.ddn, C.adresse, C.numero
FROM Client C
UNION ALL
(
SELECT A.nom, A.prenom, A.ddn, A.adresse, A.numero
FROM Assistant A
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);
CREATE VIEW Personnel (nom, prenom, ddn, adresse, numero, specialite) AS
SELECT (A.nom, A.prenom, A.ddn, A.adresse, A.numero, A.specialite)
CREATE OR REPLACE VIEW Personnel AS
SELECT A.nom, A.prenom, A.ddn, A.adresse, A.numero, A.specialite
FROM Assistant A
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;
*/
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