I have a join of two tables ,where i need to convert null date values to some valid date or a string.How this can done with the COALESCE ?
Hi,COALESCE(Field name , 'Any string or Valid Date')Hope this helpsCheers!!
But it is not excepting that,it is throughing an error that IF/THEN datatype are not matching.I hav tried with all format.kamal
Try using current_date
Its wrking with current date , But i wanted to gave exact date there.
Hi Kamal,date: COALESCE(date_col, date '2007-03-19')string: COALESCE(trim(date_col), 'blabla')Dieter
Dieter
That works like a charm. Thanks!
I have a join of two tables ,where i need to convert null date values to some valid date or a string.How this can done with the COALESCE ?