How can I compare date column foo with the other date column bar and update column foobar with the more recent date.
ID foo bar foobar
1 '2014-01-23' '0000-00-00' '0000-00-00'
2 '0000-00-00' '2013-03-01' '0000-00-00'
3 '2013-03-03 '2014-04-04' '0000-00-00'