Hi, I'm trying to make a temporary row in mysql but I can not do it, if you can achieve how to create a column but I do not know how to make a row. Can somebody help me?
This is the original column
_________________ ______________
| Salario | | AVERAGE |
_________________ |____________ |
| 200.000 | |85585.714286 |
| ________________| |______________|
^ ------- This is the original result
What I try
This is the desired result -------------------------- ^
What I tried was: select "Average Salary", avg(salary) from EMP_DATA;
And create this
+----------------+--------------+
| Average Salary | avg(salary) |
+----------------+--------------+
| Average Salary | 85585.714286 |
+----------------+--------------+
I was able to do the column but that is not what I want to do. I want the value of avg(salary)
to be below Average Salary like this:
+----------------+
| Average Salary |
+----------------+
| 85585.714286 |
+----------------+