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
How to create a table interactively?
how the indexes are stored in the Oracle Database?
Where is the export dump file located?
Explain the use of compress option in exp command.
How to work with data objects interactively?
How to pass parameters to procedures in oracle?
Explain the dml?
Describe varray?
What is the difference between online and offline backups?
What are a collation and state the different types of collation sensitivity?
Can you drop an index associated with a unique or primary key constraint?
What is the oracle implicit cursor?
How translate command is different from replace?
What are set operators?
How to define an external table with a text file?