I have a table:
mytable: id userID logDate lastLogDate
For every row in that table, I want to update the \'lastLogDate\' co
Following update statement should do what you are looking for
update mytable mt set lastLogDate = (select max(logDate) from mytable where userID = mt.userID)