no save
Assistance
Achat
News

Forum | programmation
SQL calcul entre deux select ?
kneko, le lun. 28 juil. 2003 à 10:38:32
TEST=# create table toto(ti float);
CREATE TABLE
TEST=# create table titi(ot float);
CREATE TABLE
TEST=# insert into toto values(2.2);
INSERT 33577 1
TEST=# insert into titi values(2.2);
INSERT 33578 1
TEST=# select sum(ti)-(select sum(ot) from titi) from toto;
?column?
----------
0
(1 row)
TEST=#drop table titi,toto;
DROP TABLE 2
TEST=#
Précédentfrancoispgp
juil. 03
francoispgp
juil. 03
Suivant
REPONSES
kneko
juil. 03
francoispgp
juil. 03
rahmani
avr. 08
pitbull
juin 08
Version Web
Réalisé par RedShift
no save