Howto contruct this kind of query?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Okay. This query, I have at lot of problems constructing.

I have a table A, containing records each with the fields ID, Amount, Type
and Date.
There is to values of Type: 1 and 2. For each month I want to make two sums
- one for each type, so that I'm able to show how much is spend on Type 1 and
Type 2 each month.

How do I do that?
 
Sorry... I think I kinda missed a point. I want to group the data by months,
so that I have N (the number of months) buckets with two sums (one for each
Type) in each bucket.

Can I do that?

Concerning the number of months N, I might later want to group by months per
year, so that I can gather statistics on data from more than a year.

/Chau

PS: I know that my question have some problems concerning reserved words -
it is just a problem description.
 
Sorry... I think I kinda missed a point. I want to group the data by months,
so that I have N (the number of months) buckets with two sums (one for each
Type) in each bucket.

Can I do that?

Concerning the number of months N, I might later want to group by months per
year, so that I can gather statistics on data from more than a year.

/Chau

PS: I know that my question have some problems concerning reserved words -
it is just a problem description.
 
Sorry... I think I kinda missed a point. I want to group the data by months,
so that I have N (the number of months) buckets with two sums (one for each
Type) in each bucket.

Can I do that?

Concerning the number of months N, I might later want to group by months per
year, so that I can gather statistics on data from more than a year.

/Chau

PS: I know that my question have some problems concerning reserved words -
it is just a problem description.
 
Sorry... I think I kinda missed a point. I want to group the data by months,
so that I have N (the number of months) buckets with two sums (one for each
Type) in each bucket.

Can I do that?

Concerning the number of months N, I might later want to group by months per
year, so that I can gather statistics on data from more than a year.

/Chau

PS: I know that my question have some problems concerning reserved words -
it is just a problem description.
 
Back
Top