Write a query to display all the odd numbers from a table

Showing Answers 1 - 10 of 10 Answers

Sajid Ansari

  • Jun 24th, 2006
 

SELECT DECODE(MOD(column_name,2),1,1)

FROM table_name

WHERE DECODE(MOD(PTR_ID,2),1,1)=1

  Was this answer useful?  Yes

jack

  • Jul 24th, 2006
 

 

SELECT DECODE(MOD(column_name,2),1,column_name) odd_Numbers

FROM table_name

WHERE DECODE(MOD(PTR_ID,2),1,1)=1

  Was this answer useful?  Yes

Ratheesh

  • Jun 1st, 2007
 


select <column_name> from <table_name> where mod(<column_name>,2)<>0

  Was this answer useful?  Yes

RAM

  • Jun 29th, 2012
 

Select rownum,h.* from scott.emp h
where (rowid,1) in (select rowid,mod(rownum,2) from scott.emp)

Code
  1.  

  Was this answer useful?  Yes

RAM

  • Aug 8th, 2012
 

SELECT ROWNUM,ENAME,JOB FROM EMP
WHERE MOD(ROWNUM,2)!=0
ORDER BY ROWNUM DECE;

  Was this answer useful?  Yes

Rahul Kumar Thakur

  • Aug 17th, 2012
 

which command will delete all data from a table and will not write to the rollback segment?

  Was this answer useful?  Yes

AMRUT SWAGAT DWIVEDY

  • Apr 18th, 2014
 

TRUNCATE Query

Code
  1.  

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions