I have a table that uses dateAuthorEdit, dateEditorEdit, dateAdminEdit. Rows in this table will always have a date in one or more of those 3 columns. Is a CASE clause the best way to approach this? I tried to put it together but it errors out.
CASE
when t.dateAdminEdit is not null then t.dateAdminEdit
when t.dateEditorEdit is not null then t.dateEditorEdit
when t.dateMemberEdit is not null then t.dateMemberEdit as dateEdited