J
Jake Frankham
Hi All
I would REALLY appreciate some assistance with this one, if anyone has a
spare minute?
I have a query which (in short) looks like this:
clientID clientName weeksDone
123 J Doe 5
123 J Doe 2
215 T Blair 4
215 T Blair 3
As you can see, there is a new record for each time a client 'does' some
weeks.
(There is a lot more to this table, I am just keeping it simple for brevity
!!)
What I need to do is this:
I need another column (say 'prevWeeks') which shows the previous weeks, thus
something like:
clientID clientName weeksDone prevWeeks
123 J Doe 5
123 J Doe 2 5
215 T Blair 4
215 T Blair 3 4
It would also be useful (but not essential) to keep a running total of the
weeks in each subsequent record, like:
clientID clientName weeksDone prevWeeks totalWeeks
123 J Doe 5 5
123 J Doe 2 5 7
215 T Blair 4 4
215 T Blair 3 4 7
Thanks everyone
Jake
I would REALLY appreciate some assistance with this one, if anyone has a
spare minute?
I have a query which (in short) looks like this:
clientID clientName weeksDone
123 J Doe 5
123 J Doe 2
215 T Blair 4
215 T Blair 3
As you can see, there is a new record for each time a client 'does' some
weeks.
(There is a lot more to this table, I am just keeping it simple for brevity
!!)
What I need to do is this:
I need another column (say 'prevWeeks') which shows the previous weeks, thus
something like:
clientID clientName weeksDone prevWeeks
123 J Doe 5
123 J Doe 2 5
215 T Blair 4
215 T Blair 3 4
It would also be useful (but not essential) to keep a running total of the
weeks in each subsequent record, like:
clientID clientName weeksDone prevWeeks totalWeeks
123 J Doe 5 5
123 J Doe 2 5 7
215 T Blair 4 4
215 T Blair 3 4 7
Thanks everyone
Jake