G
Guest
Hi
I have a database that comes in from our website. The first fields are TYPE,
DATE and TRAN. Each time the date alters, I would like to restart the TRAN
at 1, and increment it until the date changes - then start at 1 again.
As a sample, the info I have is:
TYPE DATE TRAN
AD 160408 34
BA 34
BA 34
CC 34
AD 160408 35
BA 35
CC 35
AD 170408 36
BA 36
BA 36
CC 36
What I would like is this:
TYPE DATE TRAN
AD 160408 1
BA 1
BA 1
CC 1
AD 160408 2
BA 2
CC 2
AD 170408 1
BA 1
BA 1
CC 1
At the moment, I have 23000 lines, with over 5000 transactions, so it can't
be done manually.
Thanks for reading this. If anyone could help - or provide a pointer in the
right direction - I would really appreciate it.
Andy.
I have a database that comes in from our website. The first fields are TYPE,
DATE and TRAN. Each time the date alters, I would like to restart the TRAN
at 1, and increment it until the date changes - then start at 1 again.
As a sample, the info I have is:
TYPE DATE TRAN
AD 160408 34
BA 34
BA 34
CC 34
AD 160408 35
BA 35
CC 35
AD 170408 36
BA 36
BA 36
CC 36
What I would like is this:
TYPE DATE TRAN
AD 160408 1
BA 1
BA 1
CC 1
AD 160408 2
BA 2
CC 2
AD 170408 1
BA 1
BA 1
CC 1
At the moment, I have 23000 lines, with over 5000 transactions, so it can't
be done manually.
Thanks for reading this. If anyone could help - or provide a pointer in the
right direction - I would really appreciate it.
Andy.