Exercice

Quelle valeur renvoie la dernière instruction SQL de la liste ci-dessous :

CTRL+C pour copier, CTRL+V pour coller
1
CREATE TABLE t (
2
 a integer,
3
 b integer,
4
 c integer);
5
6
INSERT INTO t VALUES (0, 0, 0);
7
8
INSERT INTO t VALUES (1, 0, 0);
9
10
SELECT sum(a) + count(b) FROM t;
CREATE TABLE t (
 a integer,
 b integer,
 c integer);

INSERT INTO t VALUES (0, 0, 0);

INSERT INTO t VALUES (1, 0, 0);

SELECT sum(a) + count(b) FROM t;
CorrectionRecommencer