I currently have a table where I have to remove the type1 data (see below)
id type
1 type1
2 type1
3 type1
5 type1
7 type1
8 type2
11 type3
14 type2
15 type2
16 type2
17 type2
...
.....
Now I have removed the type1 data using
update table statements
but I need to have the id's reset too. By that I mean that ids need to be kep consecutive. So with the type1 rows taken out..the ids need to be moved down.
Question: I am stuck on how I would go about doing this as my skills with SQL are somewhat basic?
Many thanks in advance guys
id type
1 type1
2 type1
3 type1
5 type1
7 type1
8 type2
11 type3
14 type2
15 type2
16 type2
17 type2
...
.....
Now I have removed the type1 data using
update table statements
but I need to have the id's reset too. By that I mean that ids need to be kep consecutive. So with the type1 rows taken out..the ids need to be moved down.
Question: I am stuck on how I would go about doing this as my skills with SQL are somewhat basic?
Many thanks in advance guys