我有一定的查询结果,我必须在我的网页的List控件中显示。重新排列sql查询结果以适当地显示
查询1个结果:
4 items in descending order
查询2结果:
Top 1 result
事实上,我有显示来自第一查询,从所述第二查询第一结果的第一结果,然后将余下三个来自第一个查询结果。我认为重新排列行,但是在Data控件的ItemTemplate中,我认为这是行不通的,因为单个行不能改变。
我是否应该以某种形式编写我的查询,以便按顺序给出结果,从而显示正确的项目顺序? 对于如:
Take the first result from top 4 item
+
Find the second result
+
Three items (minus the top one already that has been already extracted)
有什么建议?
编辑
1st class: (has 4 student)
Tom (Has highest score)
Rex (Hss second highest score)
Rambo (HAs 3rd highest score)
Betty (Has least score)
2nd class: (has 1 student)
Spooky (Has the highest score)
Required result order in DataControl:
Tom
Spooky
Rex
Rambo
Betty
查询Actally样品将是有益的 – om471987 2012-02-29 12:04:46
@Omkarpanhalkar:添加了一个例子 – Cipher 2012-02-29 12:12:26
都是结果的列是一样的吗? – PraveenVenu 2012-02-29 12:13:31