Eng 6553 group by alias

Waiting for Jenkins...
Yes, I just release that I copied it from hsql. So said.