I have one table that has two fields – ID1 and ID2
ID1 can be blank, ID2 is always populated.
I’d like to create a view that contains one field. This field would be the data from ID2 unless ID1 has a value in which case I need it to be ID1.
Coalesce doesn’t work for me as ID1 isn’t null.
All advice greatly received!
Whatever “blank” means, if it’s not
NULL, can be expressed in aCASEcondition:Where
ID1 = 'blank'is whatever your condition is.