September 18, 2014 at 1:28 pm
I know I am missing something pretty simple.. But cant figure out.
I need to print Not assigned (NA) whereever there is NULL
If its a date and is NULL then NA else show DAtetime .
I can convert it into Date but the time messes up. Also , I don't want it show oo:oo:oo as time but the actual time.
This is what I have :
ISNULL(CONVERT(Varchar(10),Start_Time,121),'Unknown')Start_Time
September 18, 2014 at 1:33 pm
Does increasing the length of your varchar to 19 solves the problem?
September 18, 2014 at 1:36 pm
Oh Yes. Why didn't i see that ..
Thanks a ton
Viewing 3 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic. Login to reply