UPDATE table_name SET col_name='xxx' WHERE condition;
WHERE col_name1 = 'xxx' AND col_name2 = 'xxx';
WHERE col_name1 = 'xxx' OR col_name2 = 'xxx';
SELECT [DISTINCT | ALL] * FROM table_name [ WHERE condition ] [ GROUP BY expr [, expr] ... ] [ HAVING condition ] [ {UNION | UNION ALL | INTERSECT | MINUS} SELECT command ] [ ORDER BY {expr|position} [ASC | DESC] [, {expr | position} [ASC | DESC]] ...] [ FOR UPDATE OF column ];
INSERT INTO table_name(nom_col1, nom_col2, ...) VALUES (val1, val2...);
INSERT INTO nom_table (nom_col1, nom_col2, ...) SELECT ...
DELETE [ <element > ] FROM < nom_de_relation > [WHERE ... ]
SELECT * FROM table_name1, tableName2 WHERE table_name1.id = table_name2.id;
SELECT * FROM t1 UNION SELECT * FROM t2;
SELECT * FROM R1 WHERE not exists (SELECT * FROM R2 WHERE R2.C = R1.A and R2.D = R1.B )
SELECT col_name FROM table_name WHERE col_name IN ('XXX1', 'XXX2');
SELECT Nom FROM PERSONNEL WHERE Salaire => ALL (SELECT Salaire FROM PERSONNEL );
SELECT Nom FROM PERSONNEL WHERE Nom = ANY (SELECT Nom FROM ABONNE ) ;
SELECT NumAbo FROM ABONNE WHERE NOT EXISTS (PRET);
SELECT Nom, Prenom FROM PERSONNEL WHERE Salaire BETWEEN 10000 and 12000;
SELECT Nom FROM ABONNE WHERE CodeP LIKE '38---' OR Ville LIKE '%ISERE%'
SELECT Nom FROM ABONNE WHERE Telephone IS NULL
SELECT Ville, count(*) FROM ABONNE GROUP BY Ville
SELECT NumAbo, count(*) FROM PRET GROUP BY NumAbo HAVING DatePret <= '22/05/00'
SELECT Salaire * 12 FROM PERSONNEL ORDER BY Salaire
SELECT DISTINCTVille FROM ABONNE
COUNT ( expr )
SELECT COUNT( * ) FROM PERSONNEL
SUM ( expr )
SELECT SUM( Salaire ) FROM PERSONNEL WHERE Prenom='Pierre'
MIN ( expr )
SELECT MIN( NumAbo ) FROM ABONNE
MAX ( expr )
SELECT MAX( Salaire ) FROM PERSONNEL WHERE Adresse LIKE '%Grenoble%'
AVG ( expr )
SELECT AVG( Salaire ) FROM PERSONNEL WHERE Fonction='Bibliothécaire'