I just noticed that if I do select * from the tableName group by columnName;
then it does not result in error. Also, even if I select the non-grouping column.
My understanding was that we can select only grouped columns and aggregated columns.
Why is this allowed? Does anything special behind the scene?
here is the SQL fiddle http://sqlfiddle.com/#!9/d3a23/5