G
Guest
Here's the sample content of my table:
Worker Date Task
=============
Worker1 Oct 1 Task1
Worker1 Oct 1 Task2
Worker1 Oct 2 Task1
Worker1 Oct 2 Task2
Worker2 Oct 1 Task1
Worker2 Oct 3 Task1
Worker2 Oct 3 Task2
I'm trying to count the number of days a worker did a task. If I query
between Oct 1 to Oct 3, Worker1 did 4 tasks in 2 days and Worker2 did 2 tasks
also for 2 days. If the query is between Oct 2 to 3, Worker1 did 2 tasks in
1 day and Worker2 also did 2 tasks in 1 day. Can this be done in a single
query? If so, please show me how to do it. Thanks in advance.
Worker Date Task
=============
Worker1 Oct 1 Task1
Worker1 Oct 1 Task2
Worker1 Oct 2 Task1
Worker1 Oct 2 Task2
Worker2 Oct 1 Task1
Worker2 Oct 3 Task1
Worker2 Oct 3 Task2
I'm trying to count the number of days a worker did a task. If I query
between Oct 1 to Oct 3, Worker1 did 4 tasks in 2 days and Worker2 did 2 tasks
also for 2 days. If the query is between Oct 2 to 3, Worker1 did 2 tasks in
1 day and Worker2 also did 2 tasks in 1 day. Can this be done in a single
query? If so, please show me how to do it. Thanks in advance.