Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/sql-server-2008/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Sql server 2008 在数据返回时按应用订单_Sql Server 2008_Sql Order By - Fatal编程技术网

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谢谢你做了这个把戏