Display Odd/ Even number of records?

Answer Posted / shareef

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


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

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is there an oracle sql query that aggregates multiple rows into one row?

542


What is the difference between a user and a schema in oracle?

556


How to create a new user account in oracle?

576


Illustrate how to determine the amount of physical CPUs a Unix Box possesses (LINUX and/or Solaris).

1803


How does propagation differ between Advanced Replication and Snapshot Replication (read-only)?

1827






Is the After report trigger fired if the report execution fails ?

2402


How to best split csv strings in oracle 9i?

584


Is it possible to center an object horizontally in a repeating frame that has a variable horizontal size ?

1874


What is meant by an index?

617


What to do if the startbd.bat failed to start the xe instance?

607


What are the differences between primary key and unique key?

507


how do u setup a replication site?

1494


How to invoke the original export import utilities?

503


What is oracle database 10g express edition?

593


Name the various constraints used in oracle?

562