Sql server 2008 在数据返回时按应用订单
我有一个存储过程,它返回这样的数据Sql server 2008 在数据返回时按应用订单,sql-server-2008,sql-order-by,Sql Server 2008,Sql Order By,我有一个存储过程,它返回这样的数据 ReportLabelID AssessmentLinkId TextBox7 10207 RadioButton2 10207 TextArea2 10207 FullName5 10207 FullName5 10211 RadioButton2 10211 TextArea2 10211 TextBox7
ReportLabelID AssessmentLinkId
TextBox7 10207
RadioButton2 10207
TextArea2 10207
FullName5 10207
FullName5 10211
RadioButton2 10211
TextArea2 10211
TextBox7 10211
ReportLabelID AssessmentLinkId
FullName5 10207
RadioButton2 10207
TextArea2 10207
TextBox7 10207
FullName5 10211
RadioButton2 10211
TextArea2 10211
TextBox7 10211
我想要的是按照字母顺序对返回数据及其AssessmentLinkId进行排序,也可以是这样
ReportLabelID AssessmentLinkId
TextBox7 10207
RadioButton2 10207
TextArea2 10207
FullName5 10207
FullName5 10211
RadioButton2 10211
TextArea2 10211
TextBox7 10211
ReportLabelID AssessmentLinkId
FullName5 10207
RadioButton2 10207
TextArea2 10207
TextBox7 10207
FullName5 10211
RadioButton2 10211
TextArea2 10211
TextBox7 10211
正如上面Marc B所建议的那样
ORDER BY AssessmentLinkID, ReportLabelID
你帮我做了这个把戏吗?谢谢你按评估的顺序LinkId,ReportLabelID?@MarcB谢谢你做了这个把戏