You are on page 1of 1

1.

select avg(ocena) as “prosecna ocena”


from ocena
join predmet on predmet.id = id_predmet
where vrsta = “писмени задатак” and id_predmet = 1 and razred = 1

2.
select count(id) as broj, razred, odeljenje
from ucenik
where pol = “ж” and datum_rodjenja like (“%-01-%)

3.
select ocena.id_predmet, predmet.naziv, count(ocena.ocena) as "број јединица"
from ocena
join predmet on predmet.id =ocena.id_predmet
where ocena.ocena = 1 and vrsta = "контролна вежба"
group by ocena.id_predmet
order by count (ocena.ocena) asc
limit 3

You might also like