title: DB2 get max date of four dates query
body: <p>I want to get greater date from four date columns and fields can be NULL.
  Please help me to write a query for this. 
  Example: </p>
  
  <p>select max(date1, date2, date3, date4) from table A where tag_id='xxxxx' </p>