BubikolRamios
07-19-2011, 12:47 PM
id_1 id_2 date
1 2 1
1 2 2
1 3 3
want to update in such way that all id_2 becomes 2 based on fact that
date is minimal at that id_2, within id_1.
How to do that, mysql does not seem to suport min(something) in joins or subselects .
1 2 1
1 2 2
1 3 3
want to update in such way that all id_2 becomes 2 based on fact that
date is minimal at that id_2, within id_1.
How to do that, mysql does not seem to suport min(something) in joins or subselects .