我有表格作为与以下值的链接
++++++++++++++++++++++++++
+ company_id + industry +
++++++++++++++++++++++++++
+ 1 + a +
+ 2 + b +
+ 3 + a +
+ 4 + c +
+ 5 + a +
+ 6 + c +
+ 7 + a +
++++++++++++++++++++++++++
a 计数为 4,c 计数为 2,b 计数为 1
我希望返回查询
++++++++++++++++++++++++++
+ company_id + industry +
++++++++++++++++++++++++++
+ 1 + a +
+ 3 + a +
+ 5 + a +
+ 7 + a +
+ 4 + c +
+ 6 + c +
+ 2 + b +
++++++++++++++++++++++++++