glthornton
Programmer
Hi,
SQL 2000 platform, Windows 2003 server. I'm working on a query that will provide me maximum date for a specific field(MR_FINISH_DATE). The problem is that not all of my entries have data in this field and thus are returning with a NULL result. I want to know if it is possible to force a specific date/time (i.e. '1900-01-01 00:00:00.000') when a NULL result in encountered?
My query looks like this:
Can I use an IF THEN ELSE statement at the end of this query to change the result?
What would be my best solution? Any and all suggestions would greatly be appreciated.
Glenn
SQL 2000 platform, Windows 2003 server. I'm working on a query that will provide me maximum date for a specific field(MR_FINISH_DATE). The problem is that not all of my entries have data in this field and thus are returning with a NULL result. I want to know if it is possible to force a specific date/time (i.e. '1900-01-01 00:00:00.000') when a NULL result in encountered?
My query looks like this:
Code:
SELECT DISTINCT MAX(MR_FINISH_DATE) AS MAX_DATE
FROM V_LST_CPSI_ENC
WHERE MR_NUMBER = $MRN
Can I use an IF THEN ELSE statement at the end of this query to change the result?
What would be my best solution? Any and all suggestions would greatly be appreciated.
Glenn