J
Josh P
I have a database of customers and their orders. there is
a line number field for customers that order multiple
items. the first product gets a line number of 1, the
second 2, etc.
each order has a unique ID, and each product refers to a
unique ID (if there's an order of 2 items, both refer to
that unique ID).
what is the best way to go about counting the line number?
I was thinking that I could have a running total going per
unique ID. if there are 5 items with the same unique ID,
those 5 will get line numbers 1, 2, 3, 4, 5, respectively.
I'm open to other ideas as well, but I figured this would
be the easiest way to solve the task.
Thanks!
a line number field for customers that order multiple
items. the first product gets a line number of 1, the
second 2, etc.
each order has a unique ID, and each product refers to a
unique ID (if there's an order of 2 items, both refer to
that unique ID).
what is the best way to go about counting the line number?
I was thinking that I could have a running total going per
unique ID. if there are 5 items with the same unique ID,
those 5 will get line numbers 1, 2, 3, 4, 5, respectively.
I'm open to other ideas as well, but I figured this would
be the easiest way to solve the task.
Thanks!