Why can't I use select * to get the group by in sqlserver?

mysql can

Mar.20,2021

syntax requires that Group By is originally grouped according to a field, and the data queried is the only data presentation in this field.

but the data of other fields is different, and sqlserver cannot merge them after grouping, so of course select * can't.

as to why mysql works, someone else must have optimized it and automatically merged the data after Group By .

Menu