-1
I have the FUNCIO table that has as columns matricula, name, anoServico, salary.
I would like to display the average wage per yearService.
How to do?
Thank you!
-1
I have the FUNCIO table that has as columns matricula, name, anoServico, salary.
I would like to display the average wage per yearService.
How to do?
Thank you!
2
Santana,
In SQL there is the AVG function, which returns the mean of values.
You can use the AVG function in the wage field and group by anoServico, it would be more or less as follows:
SELECT AVG(salario) media_salaria, anoServico
FROM FUNCIONARIO
GROUP BY anoServico
Browser other questions tagged sql
You are not signed in. Login or sign up in order to post.
Why the question is pending ?!
– Motta
The question has even been answered. Because now pending???
– MSSantana
The OS seems to measure the question by size if it has 500M and recipe for ironing , if it is short is marked.... :)
– Motta