I have a sql file which has data like this
(1, orange),
(2, blue),
(3, green),
(4, yellow),
etc..
and second file which has data like this
Green
Blue
Yellow
Yellow
green
Blue
Blue
Orange
Green
etc..
I am looking for a macro which could replace the data in my second file to the numbers in the sql file like this
3
2
4
4
3
2
2
1
3
etc
Is there any easy way to do this?

