Sei sulla pagina 1di 2

2.

a) delete from retineri where


cod_pers=(select cod_pers from persoane
where nume='Stancu Diana')
Delete from persoane where nume=Stancu
Diana
b)select a.nume, b.tip_retinere,
b.suma_lunara
from persoane a, retineri b
where a.cod_pers=b.cod_pers
order by b.tip_retinere
reultat!
c) select sum(suma_lunara) as "#otalul
sumelor$ from retineri
reultat!