jonathanchye
Registered User.
- Local time
- Today, 19:50
- Joined
- Mar 8, 2011
- Messages
- 448
Hi all,
I have a table with the following structure :
ID-----Collection Date-----Department
1 -----12/10/2011----------IT
2------12/10/2011----------IT
3------15/10/2011---------IT
4-------12/10/2011---------Finance
5-------13/10/2011---------Finance
etc...
ID is the PK of the table.
What I want to do is group them first by Collection Date then by Department and give them a unique Order No. So I want something like this:
Order No.-------------Collection Date------------Deparment
ACME001------------12/10/2011----------------IT
ACME001-------------12/10/2011----------------IT
ACME002-------------12/10/2011-------------FINANCE
ACME003------------13/10/2011-------------FINANCE
ACME004-------------15/10/2011-------------IT
Is there someway to do this? I am thinking of a make table query but can't get it to work as I've set the Order No to be unique.
Any help/advice much appreciated
I have a table with the following structure :
ID-----Collection Date-----Department
1 -----12/10/2011----------IT
2------12/10/2011----------IT
3------15/10/2011---------IT
4-------12/10/2011---------Finance
5-------13/10/2011---------Finance
etc...
ID is the PK of the table.
What I want to do is group them first by Collection Date then by Department and give them a unique Order No. So I want something like this:
Order No.-------------Collection Date------------Deparment
ACME001------------12/10/2011----------------IT
ACME001-------------12/10/2011----------------IT
ACME002-------------12/10/2011-------------FINANCE
ACME003------------13/10/2011-------------FINANCE
ACME004-------------15/10/2011-------------IT
Is there someway to do this? I am thinking of a make table query but can't get it to work as I've set the Order No to be unique.
Any help/advice much appreciated