SELECT * FROM (SELECT rownum row_id,AA.* FROM (select ID,login_name,user_name from sa_staff_info order by ID) AA) WHERE row_id between 1 and 6 ) BB left join
(SELECT ROWNUM ROW_IDD, DD.* FROM (
SELECT * FROM (SELECT rownum row_id,CC.* FROM (select ID,login_name,user_name from sa_staff_info order by ID) CC) WHERE row_id between 7 and 10) DD) EE