chris-uk-lad
Registered User.
- Local time
- Yesterday, 17:59
- Joined
- Jul 8, 2008
- Messages
- 271
Hi all,
I currently have a table with values at certain periods. Does anyone know how i can use a query to create a new table that identifies the dates.
E.g the first table is like:
MEMREF, DATE, VALUE, STATUS
AAAAA1, 01/01/01, 10.00, A
AAAAA1, 01/01/01, 14.00, B
AAAAA1, 01/01/01, 7.00, C
AAAAA1, 02/02/02, 11.00, A
AAAAA1, 02/04/02, 8.00, A
And i want the new table to ressemble:
MEMREF, DATE1, DATE2, DATE3
AAAAA1, 01/01/01, 02/02/02, 02/04/02
There will always be a maximum of 5 dates per reference, and will be several references. I just cannot fathom how to specify the first / second date into a new column as its not acting on a variable. I tried adding a sequence number and '+1' but no luck.
All help appreciated, thanks.
I currently have a table with values at certain periods. Does anyone know how i can use a query to create a new table that identifies the dates.
E.g the first table is like:
MEMREF, DATE, VALUE, STATUS
AAAAA1, 01/01/01, 10.00, A
AAAAA1, 01/01/01, 14.00, B
AAAAA1, 01/01/01, 7.00, C
AAAAA1, 02/02/02, 11.00, A
AAAAA1, 02/04/02, 8.00, A
And i want the new table to ressemble:
MEMREF, DATE1, DATE2, DATE3
AAAAA1, 01/01/01, 02/02/02, 02/04/02
There will always be a maximum of 5 dates per reference, and will be several references. I just cannot fathom how to specify the first / second date into a new column as its not acting on a variable. I tried adding a sequence number and '+1' but no luck.
All help appreciated, thanks.