txnno Name type isHeadr headr 1000 BEFORE JO Y 1001 WHILE JO Y 1002 data aaa JO N 1000 1003 bbbbdfds JO N 1000 1004 ccccccc JO N 1000 1012 aaa111 JO N 1001 1015 bbb222 JO N 1001 1016 ccc333 JO N 1001
txnno Name type isHeadr headr 1000 BEFORE JO Y 1002 data aaa JO N 1000 1003 bbbbdfds JO N 1000 1004 ccccccc JO N 1000 1001 WHILE JO Y 1012 aaa111 JO N 1001 1015 bbb222 JO N 1001 1016 ccc333 JO N 1001
ORDER BY
SELECT * FROM YourTable ORDER BY ISNULL(headr,txnno) ASC, txnno
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)