SQLScholar
Programmer
Hey all,
I have a data import which has a field which contains dates or NULL. It comes from a CSV file. I am trying to replace all empty values with null with a derived column.
This is what i have
Obviously being a CSV all data is coming in as text.
But i am getting this error.
The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.
Any ideas?
Dan
I have a data import which has a field which contains dates or NULL. It comes from a CSV file. I am trying to replace all empty values with null with a derived column.
This is what i have
Code:
LEN( [EXPIRY_DATE] )==0 ? NULL(DT_STR) : [EXPIRY_DATE]
Obviously being a CSV all data is coming in as text.
But i am getting this error.
The expression might contain an invalid token, an incomplete token, or an invalid element. It might not be well-formed, or might be missing part of a required element such as a parenthesis.
Any ideas?
Dan