I am having an issue trying to use an update query:
select
lc.name as locations,
lc.sequence
from
dbo.LocationContainers lc
Currently this query shows this result:
locations sequence
-------------------------
014-001-010-01 10
014-001-010-02 10
014-001-010-03 10
014-001-010-04 10
014-001-010-05 10
014-001-010-06 10
014-001-010-07 10
014-001-010-08 10
014-001-010-09 10
014-001-010-10 10
014-001-020-01 10
014-001-020-02 10
014-001-020-03 10
014-001-020-04 10
014-001-020-05 10
014-001-020-06 10
014-001-020-07 10
014-001-020-08 10
014-001-020-09 10
014-001-020-10 10
014-001-030-01 10
014-001-030-02 10
014-001-030-03 10
014-001-030-04 10
014-001-030-05 10
014-001-030-06 10
014-001-030-07 10
014-001-030-08 10
014-001-030-09 10
014-001-030-10 10
014-030-010-01 10
014-030-010-02 10
014-030-010-03 10
014-030-010-04 10
014-030-010-05 10
014-030-010-06 10
014-030-010-07 10
014-030-010-08 10
014-030-010-09 10
014-030-010-10 10
014-030-020-01 10
014-030-020-02 10
014-030-020-03 10
014-030-020-04 10
014-030-020-05 10
014-030-020-06 10
014-030-020-07 10
014-030-020-08 10
014-030-020-09 10
014-030-020-10 10
014-030-030-01 10
014-030-030-02 10
014-030-030-03 10
014-030-030-04 10
014-030-030-05 10
014-030-030-06 10
014-030-030-07 10
014-030-030-08 10
014-030-030-09 10
014-030-030-10 10
but what I need to changed is the sequence starts at location 014-001-010-01 sequence 10 and ends at 014-030-030-10 to 610
so basically goes by 10 from 014-001-010-01 = 10 then 014-030-010-01 20 and so on then 014-001-010-02 30 and then 014-030-010-02 40 and so on
locations sequence
------------------------
014-001-010-01 10
014-001-010-02 30
014-001-010-03 50
014-001-010-04 70
014-001-010-05 90
014-001-010-06 110
014-001-010-07 130
014-001-010-08 150
014-001-010-09 170
014-001-010-10 190
014-001-020-01 210
014-001-020-02 230
014-001-020-03 250
014-001-020-04 270
014-001-020-05 290
014-001-020-06 310
014-001-020-07 330
014-001-020-08 350
014-001-020-09 370
014-001-020-10 390
014-001-030-01 410
014-001-030-02 430
014-001-030-03 450
014-001-030-04 470
014-001-030-05 490
014-001-030-06 510
014-001-030-07 530
014-001-030-08 550
014-001-030-09 570
014-001-030-10 600
014-030-010-01 20
014-030-010-02 40
014-030-010-03 60
014-030-010-04 80
014-030-010-05 100
014-030-010-06 120
014-030-010-07 140
014-030-010-08 160
014-030-010-09 180
014-030-010-10 200
014-030-020-01 220
014-030-020-02 240
014-030-020-03 260
014-030-020-04 280
014-030-020-05 300
014-030-020-06 320
014-030-020-07 340
014-030-020-08 360
014-030-020-09 380
014-030-020-10 400
014-030-030-01 420
014-030-030-02 440
014-030-030-03 460
014-030-030-04 480
014-030-030-05 500
014-030-030-06 520
014-030-030-07 540
014-030-030-08 560
014-030-030-09 580
014-030-030-10 610
select location, row_number()over(order by location)*10 as sequence from LocationContainers