This is different, because you have a group by column which you didn't have before.
But I'm not sure why it's generating it like this for you, I use select col1, count(col2) from table all the time and it works.
This is different, because you have a group by column which you didn't have before.
But I'm not sure why it's generating it like this for you, I use select col1, count(col2) from table all the time and it works.