L
lota
i am in the middle of developing a barcode recording db. User will input
product code, quantity and serial number (SN). There are 9 products, where
each product has its OWN SETof serial number.
snenario: FIRST INPUT
product A, 5 units, starting SN -> SN0001, ending SN0005
product B, 2 units, starting SN -> SN0001, ending SN0002
product E, 7 units, starting SN -> SN0001, ending SN0007
SECOND INPUT
product A, 3 units, starting SN -> SN0006, ending SN0008 (system will auto
generate the starting SN for product A, which is "SN0006", and when the
quantity is input, which is "3" here, system will generate the ending SN for
this record as "SN0008")
product B, 1 unit, starting SN will be -> SN0003, ending SN0003
my Question:
since all 9 product's SN start with SN0001, how to track & identify the last
SN entered for each individual product?
Many thanks in advance.
product code, quantity and serial number (SN). There are 9 products, where
each product has its OWN SETof serial number.
snenario: FIRST INPUT
product A, 5 units, starting SN -> SN0001, ending SN0005
product B, 2 units, starting SN -> SN0001, ending SN0002
product E, 7 units, starting SN -> SN0001, ending SN0007
SECOND INPUT
product A, 3 units, starting SN -> SN0006, ending SN0008 (system will auto
generate the starting SN for product A, which is "SN0006", and when the
quantity is input, which is "3" here, system will generate the ending SN for
this record as "SN0008")
product B, 1 unit, starting SN will be -> SN0003, ending SN0003
my Question:
since all 9 product's SN start with SN0001, how to track & identify the last
SN entered for each individual product?
Many thanks in advance.