requête SQL: select * from usine order by ville Enregistrements: 0 NomU Ville ALPHA AL ALBI ALPHA B BORDEAUX ALPHA B BORDEAUX ALPHA C CASTRES ALPHA L 0 ALPHA M MONTPELLIER ALPHA N NANTES ALPHA P ALPHA P ALPHA T TOULOUSE requête SQL:SELECT * FROM `usine` WHERE ville = 'Bordeaux' Enregistrements: NomU Ville ALPHA B BORDEAUX ALPHA B BORDEAUX requête SQL:SELECT FROM `commande` WHERE = and = ; requête SQL:SELECT NomP, matiere FROM `produit` WHERE poids between and Enregistrements: NomP matiere DOUILLE INOX DOUILLE ACIER RESSORT CHROME GAINE CAOUTCHOUX requête SQL:SELECT NomP, matiere FROM produit, commande where = and produit. = commande. order by matiere Enregistrements: NomP matiere RACCORD ACIER requête SQL:SELECT FROM `commande` WHERE = and in ( SELECT FROM produit where matiere = 'inox' )
requête SQL:SELECT DISTINCT NomF FROM commande, fournisseur, usine, produit WHERE matiere = 'acier' AND commande. = produit. AND commande. = usine. AND commande. = fournisseur. AND ( usine. ville = 'Toulouse' OR usine. ville = 'Nantes' ) NomF FASTER DESSCO PRONAS requête SQL:SELECT distinct FROM commande, fournisseur, usine WHERE commande. = usine. and commande. = fournisseur. and fournisseur. ville = usine. ville Enregistrements: requête SQL: select distinct from commande, fournisseur, usine where commande. = usine. and commande. = fournisseur. and fournisseur. ville = 'Toulouse' and usine. ville = 'Toulouse' Enregistrements: requête SQL:SELECT distinct Fournisseur. ville,, usine. ville from commande, fournisseur, usine WHERE commande. = fournisseur. Nf and commande. = usine. ville ville TOULOUSE ALBI MONTPELLIER ALBI ALBI TOULOUSE TOULOUSE BORDEAUX TOULOUSE BORDEAUX TOULOUSE TOULOUSE NANTES CASTRES TOULOUSE TOULOUSE TOULOUSE BORDEAUX TOULOUSE BORDEAUX CASTRES ALBI TOULOUSE NANTES requête SQL:SELECT DISTINCT Fournisseur. ville,, usine. ville FROM commande, fournisseur, usine WHERE commande. = fournisseur. Nf and commande. = usine. and fournisseur. ville!= usine. ville Enregistrements:
ville ville TOULOUSE ALBI MONTPELLIER ALBI ALBI BORDEAUX TOULOUSE BORDEAUX TOULOUSE TOULOUSE NANTES CASTRES TOULOUSE BORDEAUX TOULOUSE BORDEAUX CASTRES ALBI TOULOUSE NANTES requête SQL:SELECT DISTINCT commande. from commande, fournisseur, usine WHERE commande. = fournisseur. Nf and commande. = usine. and fournisseur. ville!= usine. ville Enregistrements: requête SQL:SELECT DISTINCT FROM commande WHERE IN ( SELECT FROM commande WHERE = ) AND = Enregistrements: requête SQL:SELECT DISTINCT FROM commande WHERE IN ( SELECT FROM commande WHERE = ) Enregistrements: requête SQL: SELECT DISTINCT from produit WHERE poids IN ( SELECT min( poids ) from produit ) Enregistrements:
requête SQL: SELECT DISTINCT FROM commande WHERE not in ( SELECT from commande, produit, fournisseur where commande. = fournisseur. and ville = 'Toulouse' and commande. = produit. and matiere = 'inox' ) Enregistrements: requête SQL:SELECT DISTINCT FROM commande GROUP BY HAVING count( * ) >= requête SQL:SELECT DISTINCT FROM commande GROUP BY HAVING COUNT( DISTINCT ) >= requête SQL: SELECT COUNT(DISTINCT )AS 'Total Usine' FROM commande WHERE =; Enregistrements: Total Usine requête SQL:select, count( * )AS 'Total commande Fournisseur' FROM commande GROUP BY Enregistrements: count( * ) requête SQL: SELECT,, SUM( quantite ) AS 'total' FROM commande GROUP BY, Enregistrements: total 00 0 00 0 00 00 00 00 00 0 00 0 00 0 0 00 0
total 00 00 00 INSERT INTO `fournisseur` (``, `NomF`, `Statut`, `Ville`) VALUES ('0', 'Validico', 'ARTISANAL', 'Albi'); nu = commande. nu ) ) Enregistrements: np requête SQL:SELECT FROM commande WHERE not IN ( SELECT FROM commande WHERE!= ) Enregistrements: 0 DELETE FROM produit WHERE matiere=`inox` and poids between, and UPDATE fournisseur SET ville=`grenoble` where = UPDATE fournisseur SET statut=`industriel` where (ville=`paris` OR ville=`lyon`) requête SQL: SELECT DISTINCT FROM commande WHERE IN ( SELECT FROM commande WHERE IN ( select from commande WHERE IN ( select from produit where matiere = 'inox' ) ) ) Enregistrements: requête SQL:SELECT np FROM produit WHERE NOT EXISTS ( SELECT nu FROM usine WHERE ville = "Bordeaux" AND NOT EXISTS ( SELECT * FROM commande WHERE produit. np = commande. np AND usine.