from consultatii where data_consult = '01/dec/2012' 1c) select sum(pret) as "Suma platita" from consultatii c, pacienti p where p.cnp_p = c.cnp_p and p.nume = 'Georgescu Paul' 2b) select nume, prenume, numed from clienti c, destinatii d where d.id = c.id_d and numed = 'Viena' 2c) select numed from destinatii where pret = (select max(pret) from destinatii) or pret = (select min(pret) from destinatii) 3b) select a.nume, a.prenume, i.data_inreg from abonati3 a, interventii3 i where a.cnp = i.cnp and to_char(i.data_inreg, 'dd/mm/yyyy') = '01/01/2013' order by nume, prenume 3c) select data_inreg, stare, termen_limita from interventii3 where stare = 'neefectuat' and sysdate > data_inreg + termen_limita 4b) si 4c) nu au fost facute (profesoara a zis ca nu sunt bune) 5b) select s.nume, s.adresa, s.cnp, c.nume_caine, c.premiu from stapani5 s, caini5 c where s.cnp = c.cnp and nume like '%Cristinel%' 5c) select c.nume_caine, c.premiu, s.nume from caini5 c, stapani5 s where s.cnp = c.cnp order by c.premiu, c.nume_caine 6b) select a.nume, min(a.data_nasterii), s.denumire from specii6 s, animale6 a where s.ids = a.ids AND a.data_nasterii = (select min(data_nasterii) from animal e6) group by a.nume, s.denumire 6c) select a.nume, s.denumire from animale6 a, specii6 s where s.ids = a.ids order by s.denumire, a.nume 7b) select denumire, nume_o, populatie from orase7 o, tari7 t where o.cod_t = t.cod_t and (populatie, denumire) IN (select max(populatie), de numire from orase7 o, tari7 t where o.cod_t = t.cod_t group by denumire) order by denumire 7c) select nume_o, populatie from orase7 where populatie = (select min(populatie) from orase7) or populatie = (select max (populatie) from orase7) 8b) select c.nume, c.prenume, c.adresa, r.denumire
from clienti8 c, reclame8 r
where c.idc = r.idc order by c.nume, c.prenume 8c) select c.nume, c.prenume, c.adresa from clienti8 c, reclame8 r where c.idc = r.idc and r.nr_de_difuzari = (select max(nr_de_difuzari) from recl ame8) 9b) select nr_inmatriculare from masini9 m, curse9 c where m.idm = c.idm and data_intoarcerii - data_plecarii > 1 9c) select sum(nr_locuri) as "Numar de persoane" from masini9 m, curse9 c where m.idm = c.idm and data_plecarii = '01/may/2013' 10b) select c.titlu, c.autor, c.pret from carti10 c, edituri10 e where e.cod = c.cod and e.nume = 'NEMIRA' order by titlu 10c) select sum(PRET) AS "Valoare" from carti10 c where autor = 'ION CREANGA'