I have two columns "TOPSALES" and "TOPCOUNTRY"
TOPSALES Containing a number separated by commas like this :
10,30,83
10 mean 10 sales in USA
30 mean 30 sales in CANADA
83 mean 83 sales in UK
I have second column "TOPCOUNTRY" = NULL.
I want get max number in TOPSALES field and Insert their country name into TOPCOUNTRY using variable or somthing like this.
My Tables Right Now:
TOPSALES | TOPCOUNTRY
10,30,83 | NULL
Desired Ouput :
TOPSALES | TOPCOUNTRY
10,30,83 | UK