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 .

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e479f1-44c3f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e479f1-44c3f.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?