I have a sample table of about 200 rows. The row contains a column, ‘order_number’, which contains a number equivalent to the level of the row, and the numbers are always consecutive. For example, the first row has 1, second row 2, third row 3, 100th row 100, etc. The numbers must always be consecutive.
So, here’s the issue: if I decide to delete the row 50, there’ll be a gap in the table (1-49, 51-200); how can I move the rows 51-200 up so that the everything becomes 1-199? There must be no gap in the ‘order number’ at all.
Please help.
Thanks.
If no other table references the order_number, you should be able to just do;
Simple demo here.