barnettjacob
IS-IT--Management
I've got a series of voucher codes that are alphanumeric and I need to establish whether a transaction is associated with the voucher code.
There are 21,000 codes which are sequential e.g. AB00000000005258 to AB00000000026258 but I'm presuming that becuase they are alphanumeric I can't do the following:
sum(case when vouchernumber between AB00000000005258 and AB00000000026258 then 1 else 0 end) as vcnt
Can anybody help?
Thanks
Jacob
There are 21,000 codes which are sequential e.g. AB00000000005258 to AB00000000026258 but I'm presuming that becuase they are alphanumeric I can't do the following:
sum(case when vouchernumber between AB00000000005258 and AB00000000026258 then 1 else 0 end) as vcnt
Can anybody help?
Thanks
Jacob