Ho,
I have two date fields in my table. I want to update a control table for each customer, using whichever date is later.
Can I achive this ? Sort of like this:
update tableb
set controldate = select MAX( date1 OR date2 *whichever later*) from tablea
where tableb.customer = tablea.customer
so I want the max date over the two columns. Hope I am making sense!!
Can anyone help please?
Thanks