how I can follow the order of a column according to their foreign key?
for example: i have two tables (Country and State)
country(id, country)
state(id_country, id_state, state) this is where i have the problem...
I want to keep the order by country with a sequence
1 | 1 | first state in the country one
1 | 2 | second state in the country one
1 | 3 | third state in the country one
2 | 1 | first state in the country two
this is possible?