Commit 9ee516ab authored by Oceane Bordeau's avatar Oceane Bordeau
Browse files

merge

parents 5b451556 7cd7839f
......@@ -4,3 +4,4 @@ Et pour les oeuvres nous avons utilisé une liste avec leur ids.
Pour écrire les tables des oeuvres en JSON, on doit adopter une des deux méthodes pour gérer les clés étrangère:<br>
-soit on met juste l'id correspondant <br>
-soit on redéfinit à chaque fois (imbrication redondante)
Si par exemple on choisit la première méthode, l'attribut auteur serait un entier et expo une liste d'entier.
\ No newline at end of file
<mxfile host="app.diagrams.net" modified="2021-11-03T11:45:44.484Z" agent="5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.69 Safari/537.36" etag="BAqdeIJBVgELe2pZdZs9" version="15.6.6" type="device"><diagram id="YENaLjN_NxkEbvXbnhcM" name="Page-1">7V1bd5s6Fv41fmyWxZ3HxGk7Z07S09N0Ju28ZKlGtmkxeAAncX/9ETayQVvm4iDwhdWulaDIGPa3tbXvGqij+evHEC9m94FDvIEydF4H6u1AUdBQteiPZGSVjphaOjINXScd2w08uL8J+2g6unQdEuUmxkHgxe4iPzgOfJ+M49wYDsPgJT9tEnj5b13gKQEDD2PswdFH14lnm1FLMXfj/yLudMa+GRn25i9zzCanbxLNsBO8ZIbU9wN1FAZBvPlt/joiXkI9RpfN5z7s+ev2wULix1U+8OfTp9+69dfEx1+ew4l7/fKfx/++S+/yjL1l+sKfQxLFOMZuSNLnjleMGNGLO/ewT69uJoEfP6R/QfR6PHM95w6vgmXyMPQO41/s6mYWhO5vOh976WT65zBOsVaHuRkPySfpcDJKn4TO+czeEHFD9/g1N/EOR3E6MA48Dy8i98f2+eY4nLr+TRDHwTydBAnIqEHCmLxmhlKCfiTBnMThik55ZXyQgpuyt2ql1y87XkFaOjbL8ImdjuGUPafbW+8QpL+kINYAVAGA0un0KdXr5JN+TKYkTK7Nm19kNTBvAcb0zeM1RGHwi4wCLwjpuB9sQHc9jxvCnjv16aVHJsnHEtK5dPVcp8Nz13G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
CReate view vOeuvres as
SELECT oe.ido, oe.titre, oe.dimensions, oe.type, oe.date_crea, oe.auteur, NULL as prix, NULL as dateacq FROM oeuvre_ext oe
UNION ALL
SELECT ol.ido, ol.titre, ol.dimensions, ol.type, ol.date_crea, ol.auteur, ol.prix_acq as prix, ol.date_acq as dates FROM oeuvre_louvre ol;
......@@ -158,6 +158,10 @@ CREATE view vOeuvres as
SELECT oe.ido, oe.titre, oe.dimensions, oe.type, oe.date_crea, oe.auteur, NULL as prix, NULL as dateacq FROM oeuvre_ext oe
UNION ALL
SELECT ol.ido, ol.titre, ol.dimensions, ol.type, ol.date_crea, ol.auteur, ol.prix_acq as prix, ol.date_acq as dates FROM oeuvre_louvre ol;
CREATE VIEW vExpos AS
SELECT * FROM Expo_Perm
UNION ALL
SELECT nom FROM Expo_Temp ;
INSERT INTO Artiste (nom, prenom, naiss, mort) VALUES ('Rodin', 'Auguste', TO_DATE('1840-11-12', 'YYYY-MM-DD'), TO_DATE('1917-11-17', 'YYYY-MM-DD'));
......
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