Apologies if this is has a simple solution but I'm still in the early stages of learning T-SQL.
I have a table that contains package tracking numbers and a 'boxes' column that contains the numbers of packages covered by a tracking number thus
trackingno boxes
---------- -----
911111111 4
911111112 2
911111113 3
I would like to create a query that will give me an output like
trackingno boxnumber
---------- -----
911111111 1
911111111 2
911111111 3
911111111 4
911111112 1
911111112 2
911111113 1
911111113 2
911111113 3
I've been wrestling with this for hours now and have 'Googled' but found nothing similar so any help/guidance/pointers would be greatly appreciated.
TIA
I have a table that contains package tracking numbers and a 'boxes' column that contains the numbers of packages covered by a tracking number thus
trackingno boxes
---------- -----
911111111 4
911111112 2
911111113 3
I would like to create a query that will give me an output like
trackingno boxnumber
---------- -----
911111111 1
911111111 2
911111111 3
911111111 4
911111112 1
911111112 2
911111113 1
911111113 2
911111113 3
I've been wrestling with this for hours now and have 'Googled' but found nothing similar so any help/guidance/pointers would be greatly appreciated.
TIA