I have a table with multiple date columns per employee:
Emp 1, Date1, Date2, Date3
Emp 2, Date1, Date2, Date3
etc.
I would like to write a single query that returns to me the maximum date of the three dates available on a per-employee basis. I understand I need to write a UNION ALL query but I can't seem to get the syntax so that I get a max value per employee record. I keep getting the same value for all employees. I'm sure this is a stupid error, but it's driving me nuts. Any help would be most appreciated.