Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Easy DECODE query (hopefully)...
I have a table:
FOO
I get no rows selected. I would like it to return 0 if there is no entry in the table for 'Mom'.
Is NULL the correct expression? Yes, I could use count(Id) in the search expression instead, but I am trying to return the ID if it exists or 0 if it doesn't.
Thanks,
Sean Dolan
Sent via Deja.com http://www.deja.com/
Before you buy.
Received on Mon Mar 13 2000 - 08:47:39 CST
![]() |
![]() |