Monday, October 12, 2009

odd and even row number

select * from emp where (rowid,1) in (select rowid,mod(rownum,2) from emp )


select * from emp where (rowid,0) in (select rowid,mod(rownum,2) from emp )

No comments: