Commit fc30d160 authored by Antoine Kryus's avatar Antoine Kryus
Browse files

feat API INSERT.sql ajout nom cat et desc role

parent bbe5c1bd
......@@ -13,11 +13,11 @@ SELECT * FROM Spectacle;
SELECT auteur, anneedeparution AS Année FROM Spectacle WHERE type='PieceDeTheatre' AND typetheatre='Comedie' ORDER BY anneedeparution DESC;
SELECT idbillet, nom, prenom, categoriebillet FROM Billet B JOIN MembreDeLUniversite M ON B.acheteurUniversite = M.numeroCIN JOIN CategorieBillet C ON B.categoriebillet = C.idcategorie WHERE C.idcategorie=7; --et là faut rajouter le nom de la catégorie
SELECT idbillet, nom, prenom, categoriebillet, nom AS nom_catégorie FROM Billet B JOIN MembreDeLUniversite M ON B.acheteurUniversite = M.numeroCIN JOIN CategorieBillet C ON B.categoriebillet = C.idcategorie WHERE C.nom='etudiant';
DELETE FROM Inscription WHERE numeroCIN = 12 AND association = 2;
SELECT statut, nom, prenom, auteur FROM MembreDeLuniversite M JOIN Role R ON M.numeroCIN = R.numeroCIN JOIN Spectacle S ON R.idspectacle = S.idspectacle WHERE S.type='PieceDeTheatre'; -- et là faut rajouter R.desc
SELECT statut, nom, prenom, auteur, role FROM MembreDeLuniversite M JOIN Role R ON M.numeroCIN = R.numeroCIN JOIN Spectacle S ON R.idspectacle = S.idspectacle WHERE S.type='PieceDeTheatre';
SELECT nom FROM Batiment B WHERE B.nom = 'BF';
SELECT prenom, telephone FROM MembreExterieur;
......
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