Answer Posted / swastik mohanty
--TO FIND EVEN NUMBER
SELECT * FROM Table
WHERE ROWID IN (SELECT DECODE(MOD(ROWNUM, 2), 0, ROWID, NULL) FROM Table);
--TO FIND ODD NUMBER
SELECT * FROM Table
WHERE ROWID IN (SELECT DECODE(MOD(ROWID, 2), 1, ROWID, NULL) FROM Table);
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain the use of parfile option in exp command.
What happens internally when the user types userID/password@string in SQL PLUS Thanks-Bhaskar
What is ceil and floor in oracle?
Oracle
What is translate in oracle?
How view is different from a table?
I have a database backup file in .db (ext) form how to conver it into .dmp (ext.) for oracle database
What is a tns file?
How to use an explicit cursor without open statements?
What is meant by a deadlock situation?
What are the built-in functions used for sending Parameters to forms ?
There are n numbers of flatfile of exactly same format are placed in a folder.Can we load these flatfile's data one by one to a single relational table by a single session??
What are the various oracle database objects?
What spfile/init.ora file parameter exists to force the CBO to make the execution path of a given statement use an index, even if the index scan may appear to be calculated as more costly?
What do you mean by a deadlock?