इसे इस्तेमाल करे। फिडलर डेमो
SELECT * FROM
(
select * from table where id in (1,2,3,4) order by data desc
) Test
UNION
SELECT * FROM
(
select * from table where id in (5,6,7) order by data asc
) Test2
इसे इस्तेमाल करे। फिडलर डेमो
SELECT * FROM
(
select * from table where id in (1,2,3,4) order by data desc
) Test
UNION
SELECT * FROM
(
select * from table where id in (5,6,7) order by data asc
) Test2