I have a table:
mytable: id userID logDate lastLogDate
For every row in that table, I want to update the \'lastLogDate\' co
you can simply write a nested query like this
Update mytable a set a.lastLogDate = (select max(logDate) from mytable b where a.id=b.id) Where...;