WebページのListコントロールに表示する必要がある特定のクエリの結果があります。適切に表示するようにSQLクエリ結果を並べ替える
クエリ1つの結果:
4 items in descending order
クエリ2結果:
Top 1 result
は実際に、私は、最初のクエリから2番目のクエリの最初の結果を最初の結果を表示する必要があり、その後、残りの最初のクエリ結果から3つ。
最初は、行を並べ替えることを考えましたが、個々の行を変更することはできないため、私が想定しているデータコントロールの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)
任意の提案ですか?
EDIT
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
@Omkarpanhalkar次のようになります。例を追加しました – Cipher
両方の結果が同じであるの列ですか? – PraveenVenu