Advertisement
MiguelazoDS

Untitled

Jan 28th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQL 0.10 KB | None | 0 0
  1. SELECT IF(sexo='H','Hombres','Mujeres') sexo, round(AVG(salario),1)
  2. FROM empleados
  3. GROUP BY sexo
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement