B
blinton25
Hello,
I have two fields, StartDate and NumberofDays
e.g:
StartDate NumberofDays
20040801 5
20040802 2
For any given day I want to find out how many people are
present. So in the example above, on 20040801 I have 1
person, on 20040802 I have two people, and on 20040804 I
will be back to one person since the person who is staying
two days would have left.
My result set would look like:
20040801 1
20040802 2
20040803 2
20040803 1
but basically for an entire year.
Is there anyway to do this using SQL?
I have two fields, StartDate and NumberofDays
e.g:
StartDate NumberofDays
20040801 5
20040802 2
For any given day I want to find out how many people are
present. So in the example above, on 20040801 I have 1
person, on 20040802 I have two people, and on 20040804 I
will be back to one person since the person who is staying
two days would have left.
My result set would look like:
20040801 1
20040802 2
20040803 2
20040803 1
but basically for an entire year.
Is there anyway to do this using SQL?