I have a Countries(ID,Code,Name,....)
table.here ID
is a auto generated primary key column.
this are few rows:
{1,AD,Andorra};
{2,AG,Antigua and Barbuda};
{3,AI,Anguilla}
now the problem is I cant find a way to add a new country Code, say 'AH' in such a way that the automatically the table become like..
{1,AD,Andorra}
{2,AG,Antigua and Barbuda}
{3,AH,......}
{4,AI,Anguilla}
in other words I need sorted list by ID
and CODE
.Its ok if I need to change some ID values.
I have a clustered index on ID
.
plz,plz suggest me a way...