Difference between decode nad replace
626981Mar 27 2008 — edited Mar 27 2008can you plz highlight the difference between decode and replace.. am using oracle10g r2 on solaris....
these r the 2 quereies...
select count(DECODE(EMAIL_L,'%@yahoo.com%','%@thoyahoo.com%')) FROM SIEBEL.MAIL
i understand here if EMAIL_L is like @yahoo.com then it returns @thoyahoo.com
select count(REPLACE(EMAIL_L,'%@yahoo.com%','%@thoyahoo.com%')) FROM SIEBEL.MAIL
and here also if EMAIL_L has @yahoo.com then it returns @thoyahoo.com
But when i try and execute each of them i dont get any output in the decode query....
Any explainations???