Input :
col1 col2
a 1
b 1
c 2
d 2
I would like to :
Create the new colX to get the first value in col1 group by col2 and save the value in colX
results :
col1 col2 colX
a 1 a
b 1 a
c 2 c
d 2 c
how can do it in mysql
Software/Hardware used:
ASKED:
October 14, 2010 7:51 PM
UPDATED:
October 15, 2010 6:04 PM
wOW , THANK YOU !