Hello There!
I am in need of some serious sql help. I am working on my PhD and have a mysql table of data. One of my fields in the table is screen resolution "res" it contains hundreds of values like:
300x200
1024x600
1024x800
1024X768
When doing linear regression on this field, I have to "dummy code" the values. with a categorical value like so:
1
2
3
4
I've added a field to my table called resolutionCategory "resCat" What I would like to do is create a query that assigns a number to each value and then inserts it into the resolution category field like so:
res ------------ resCat
300x200 | 1
1024x600| 2
1024x800| 3
1024x768| 4
Anyone have any ideas? I'd hate to to to code these by hand as there are about 900 unique values and thousands of rows in the table.
Thanks in advance for your assistance!
Regards
WebRuss