NVL for date parameter

How is the NVL function look for a date parameter :
NVL(column_date , ??????)
Thank you
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

You would specify it according to how you are using the output.  If you are storing the result in a date variable, then maybe like this:
  NVL(column_date, to_date('12/31/1999', 'mm/dd/yyyy'));
  NVL(column_date, sysdate);
You just have to make sure if a null is encountered, the NVL function returns a date type to match the variable.
Hi Sharone,


(you should use the same date mask the parameter is)

TEST> select nvl(NULL,SYSDATE) from dual;


You just replace NULL and dual
with the appropriate column and table_name.

Your question suggests that you already know this. Are you asking for more?

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.