0select * from
(0select a.*,rownum as my_sys_rownum from (
0select deptid,nvl(BDZNAME, ),nvl(VOLLEVEL, 0 ),ZBRL,nvl(ZBTS, 0 ),
nvl(FZR, 0 ),nvl(DEPTIDDES, ),nvl(TEL, ),nvl(RUNSTATEDES, ),
nvl(ADDRESS, ),BDZID from V_BDZ where rownum<2000
and ZBRL is null
) a
union
0select b.*,rownum (0select count(*) from (
0select deptid,nvl(BDZNAME, ),nvl(VOLLEVEL, 0 ),ZBRL,nvl(ZBTS, 0 ),
nvl(FZR, 0 ),nvl(DEPTIDDES, ),nvl(TEL, ),nvl(RUNSTATEDES, ),
nvl(ADDRESS, ),BDZID from V_BDZ where rownum<2000
and ZBRL is null
)) as my_sys_rownum from (
0select deptid,nvl(BDZNAME, ),nvl(VOLLEVEL, 0 ),ZBRL,
nvl(ZBTS, 0 ),nvl(FZR, 0 ),
nvl(DEPTIDDES, ),nvl(TEL, ),nvl(RUNSTATEDES, ),
nvl(ADDRESS, ),BDZID from V_BDZ where rownum<2000
and ZBRL is not null order by ZBRL
) b
)
order by my_sys_rownum desc |