-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecherche.sql
More file actions
17 lines (15 loc) · 934 Bytes
/
Copy pathRecherche.sql
File metadata and controls
17 lines (15 loc) · 934 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
CREATE or REPLACE VIEW RechDateCmd
("Numero commande", "Date", "Nom Fournisseur", "Nom Gestionnaire", "Etat")
as select c.Numero, c.DateCommande, f.Nom, u.Nom, c.ValidationManager
from Fournisseur f, CommandeFourn c, Utilisateur u
where f.Nom = c.NomFourn and u.Login = c.NomUser and c.DateCommande = (?);
CREATE or REPLACE VIEW RechArtCmd
("Numero commande", "Date", "Nom Fournisseur", "Nom Gestionnaire")
as select c.Numero, c.DateCommande, f.Nom, u.Nom
from CommandeFourn c, Fournisseur f, Utilisateur u, Produit p, LigneProduit l
where l.RefProduit = p.Reference and c.Numero = l.NumCommande and f.Nom = c.NomFourn and u.Login = c.Utilisateur and p.Reference = (?);
CREATE or REPLACE VIEW RechFourn
("Numero commande", "Date", "Nom Gestionnaire")
as select c.Numero, c.DateCommande, u.Nom
from CommandeFourn c, Fournisseur f, Utilisateur u
where c.NomFourn = f.Nom and u.Login = c.Utilisateur and f.Nom = (?);