I have a series of date columns that are generating (on occasion) an un desired date (1900-01-01). I want to be able to isolate these dates per column and simply return a blank (' ') rather than a NULL or anything else.
An example (partial) query I am using is currently this:
+ '|' + CAST(CONVERT(varchar(10),ISNULL(dbd1._2149, ''), 110) AS VARCHAR) --AS 'LockDate'
I need to be able to fit whatever I need into this selection statement where I am doing a cast and a null check. And yes, this is supposed to be pipe-delimited. So how can I return a blank where dbd1._2149 = '1900-01-01?
An example (partial) query I am using is currently this:
+ '|' + CAST(CONVERT(varchar(10),ISNULL(dbd1._2149, ''), 110) AS VARCHAR) --AS 'LockDate'
I need to be able to fit whatever I need into this selection statement where I am doing a cast and a null check. And yes, this is supposed to be pipe-delimited. So how can I return a blank where dbd1._2149 = '1900-01-01?