Advertisement
Guest User

Untitled

a guest
Nov 28th, 2014
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. 1.
  2.  
  3. SELECT pesel,imie,nazwisko,oceny
  4. FROM uczniowie
  5. GROUP BY pesel
  6. HAVING Avg(oceny);
  7.  
  8.  
  9. 2.
  10.  
  11. select pesel,przedmiot,ang(ocena) as srednia
  12. from uczniowie
  13. where przedmiot="bazy danych"
  14. group by pesel przedmiot;
  15.  
  16. 3.
  17.  
  18. select peselm przedmiot, avg(ocena) as srednia
  19. from uczniowie
  20. where przedmiot="bazy danych"
  21. groupby pesel, przedmiot
  22. having avg(ocena)>4,5;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement