Advertisement
Guest User

fdfsfdfdfdsf

a guest
Jan 28th, 2020
111
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. SELECT
  2. tridy_trida AS `Trida`,
  3. COUNT(*) AS `Počet studentů`,
  4. ROUND(AVG(absence),1) AS `Průměrná absence`
  5. FROM `studenti`
  6. GROUP BY tridy_trida
  7. HAVING `Průměrná absence` > (SELECT AVG(absence) FROM `studenti`)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement