In MySQL, how do I change the column name of a table from "sum(xyz)", to say "xyz"? I have tried the following solutions for just changing the column name:
However, it always throws up an error saying that the syntax is not right. I feel that it is because of the sum() function, because it doesn't allow me to use SELECT on that column too (when done separately). Is there any way past this? A solution to access the values in that column without changing the column header is also appreciated!
I am using WAMPSERVER to run MySQL version 5.1.53.
Thanks