Developpement/23BDD/Test.sql

12 lines
312 B
MySQL
Raw Normal View History

2024-12-09 11:53:11 +01:00
CREATE VIEW CommandeBuveur (numCom, dateCom, nomBuveur)
AS SELECT NumCom, DateCom, Nom
FROM Commande NATURAL JOIN Buveur;
CREATE VIEW VIN2 (numvin, cru, region)
AS SELECT NumVin, cru, Region
FROM Vin;
CREATE VIEW Paris (Numbuveur, nom, prenom)
AS SELECT NumBuveur,Nom, Prenom
FROM Buveur
WHERE Ville = 'PARIS';