通过数据返回应用订单

时间:2012-09-24 04:59:58

标签: sql-server-2008 sql-order-by

我有一个存储过程,它返回这样的数据

ReportLabelID   AssessmentLinkId
TextBox7            10207
RadioButton2        10207
TextArea2           10207
FullName5           10207
FullName5           10211
RadioButton2        10211
TextArea2           10211
TextBox7            10211

我想要的是按字母顺序将返回数据与他们的AssessmentLinkId按顺序排序

ReportLabelID   AssessmentLinkId
FullName5           10207
RadioButton2        10207
TextArea2           10207
TextBox7            10207
FullName5           10211
RadioButton2        10211
TextArea2           10211
TextBox7            10211

1 个答案:

答案 0 :(得分:0)

正如上面Marc B所建议的

ORDER BY AssessmentLinkID, ReportLabelID

为我做了诀窍谢谢

相关问题