Code:
CASE
WHEN Father_First_Name <> ' ' THEN (Father_First_Name + ' ' + Father_Last_Name)
WHEN Mother_First_Name <> ' ' THEN (Mother_First_Name + ' ' + Mother_Last_Name)
ELSE (Guardian_First_Name + ' ' + Guardian_Last_Name)
END as Guardian,
PracticalProgram makes a very good point. This code works, but it relies on "the kindness of strangers" in order to work. If a user accidentally types a single character or enters "Unknown" for the father's name, then this code will still use the father's name.
There are many ways to do this and you'll need to find the one that works best for your users. I wouldn't leave this code "as is" longer than I needed to, it will eventually break and hurt you!
-PatP