Select or Update only the latest records per group or set in MySQL database table
So I faced this today that I could have keep a column of TinyInt type in a table where I keep multiple records for a, lets say, user or product. Such as, user login history.