I am trying to write a select statement that will select a number of fields including an email field. There are 3 email fields available in this table which can sometimes contains null values. I wan to look at 3 fields; [email address1], [email address2], [email address3] and basically what I want to do is if [email address3] is null then I want the value in [email address2], If email address2 is null than I want the value in [email address1]
I can't seem to get the Syntax right and am not too sure what I'm doing wrong.