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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Need Help soon with this querry!!!!!! PLZ PLZ 0
Group By Query 5
Combine Duplicates in Query 0
cross tabg query 1
SUM in a UNION query 2
Group by month 2
Crosstab query (I think) 4
total query with last date 9

Back
Top