I have a column with name "data-description" which has entries like
Mumbai,Maharastra,India
London,London, Britain
Chandigarh,Haryana,India
Lahore, Punjab, Non-India
Each line describes the value of one data-description column.
Now I need to update another table which will have three columns which will have
<City> => <Citycode> ---> Every City
<Statename> => <Statename>
<Country> => <Country>
I have a table where a mapping between City and City-Code is made. Now I need to make another table with the three columsn Citycode, Statename, Country
How do I do this with a couple of SQl statements and without using any PL/SQL?
Also, The order may not be the same in rows. Like some rows have order City,State,County. Others may have the order State,Country,City.