i have a simple query i have attached below. one of my fields is called LOTNUMBER which looks like this for example 240-32(240 is the julian date, and 32 is the bag number.
what my issue is when sort them in asc order they end up looking like this:
240-1
240-10
240-11
240-12 ect
and i want it to look like this
240-1
240-2
240-3
240-4 ect
Any ideas?
SELECT *
FROM [DSIPAR].[dbo].[bk_v_nif_OnHandInventory_BaseWithTests]
where Receiptdate = @ProductionDate and item = '07603'
ORDER BY lotnumber asc
what my issue is when sort them in asc order they end up looking like this:
240-1
240-10
240-11
240-12 ect
and i want it to look like this
240-1
240-2
240-3
240-4 ect
Any ideas?
SELECT *
FROM [DSIPAR].[dbo].[bk_v_nif_OnHandInventory_BaseWithTests]
where Receiptdate = @ProductionDate and item = '07603'
ORDER BY lotnumber asc