In the following table, I have a column called ShortDesc and one called LongDesc. If the ShortDesc is not null, I want to return this value. If the ShortDesc column in a row is null, I want to return the value of the LongDesc. If both the ShortDesc and LongDesc are not null, I only want to return the ShortDesc (the LongDesc needs to be returned as null).
Table Events
ID ShortDesc LongDesc
0 abc null
1 null def
2 ghi jkl
Result:
ID ShortDesc LongDesc
0 abc null
1 null def
2 ghi null
I'm at a loss how to create the SQL for this.