H
Herbert Chan
Hello,
We operate some waste dump site and each entry of trucks making disposal at
our facility is recorded.
Our record structure is like this:
Date Time In Time Out Vehicle No Source Material etc.
My question is:
How to do a crosstab query to show Sources as row headers and different
periods of time such as Week1, Week2, Week3, Week4 as column headers and
counts as the content?
Right now, I'm making different individual queries to get the counts for
separate time periods.
Another question:
My data is like this: each month is stored in separate tables (it's bad
database design, but it's the current situation.)
I sometimes want to count the number of disposal of different materials over
different months. Now I have to first UNION ALL the tables selecting only
the material column, and then do count on this query result. Any way to do
it in one query?
Thanks.
Herbert
We operate some waste dump site and each entry of trucks making disposal at
our facility is recorded.
Our record structure is like this:
Date Time In Time Out Vehicle No Source Material etc.
My question is:
How to do a crosstab query to show Sources as row headers and different
periods of time such as Week1, Week2, Week3, Week4 as column headers and
counts as the content?
Right now, I'm making different individual queries to get the counts for
separate time periods.
Another question:
My data is like this: each month is stored in separate tables (it's bad
database design, but it's the current situation.)
I sometimes want to count the number of disposal of different materials over
different months. Now I have to first UNION ALL the tables selecting only
the material column, and then do count on this query result. Any way to do
it in one query?
Thanks.
Herbert