Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.
- SELECT pesel,imie,nazwisko,oceny
- FROM uczniowie
- GROUP BY pesel
- HAVING Avg(oceny);
- 2.
- select pesel,przedmiot,ang(ocena) as srednia
- from uczniowie
- where przedmiot="bazy danych"
- group by pesel przedmiot;
- 3.
- select peselm przedmiot, avg(ocena) as srednia
- from uczniowie
- where przedmiot="bazy danych"
- groupby pesel, przedmiot
- having avg(ocena)>4,5;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement