SQL Server mode SQL

后端 未结 3 1353
我在风中等你
我在风中等你 2021-01-21 16:49

I have a table that list students\' grades per class. I want a result set that looks like:

BIO...B
CHEM...C

Where the \"B\" and \"C\" are the m

3条回答
  •  囚心锁ツ
    2021-01-21 17:09

    You just need to GROUP BY ClassName

    SELECT ClassName, MODE(Grade) FROM YourTable GROUP BY ClassName
    

提交回复
热议问题