Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coalesce Date

Status
Not open for further replies.

iolaper

MIS
Jun 7, 2004
98
US
I do a coalesce(date,' ') as date
Here if date is NULL it is replaced with a blank string
But my report shows up as 1/1/1900 if the date is NULL in the database.
I tried lots of things but could not avoid it.
I want it to display a blank string if there is a NULL.

Database: SQL Server 2000
MSTR V: 7.5.1


 
did you try case(isnotnull(date), date, ' ')
 
Know what nlim, I think it works without even having a coalesce. I removed it and since I was not filtering on the date, it still pulls in the data fine.
But I will make a note of the syntax though.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top