E
Econ
Hi,
I am new to access (obviously) and am wondering how to do the following.
Assume a table containing cd prices, each cd associated with a category (as in rock, pop etc etc). I want to use the sum functions to make a query that will summarize the value of the CDs in the different categories.
Example
Title Category Price
xxx rock 10
yyy pop 12
zzz pop 11
xyz rock 10
should return:
rock 20 pop 23
I know how to make these summaries individually but how do I write the two of them in one statement??
select sum(Price) where Category ="rock"
select sum(Price) where Category ="pop"
How do I combine these statements into just the one query?
Any help appreciated
I am new to access (obviously) and am wondering how to do the following.
Assume a table containing cd prices, each cd associated with a category (as in rock, pop etc etc). I want to use the sum functions to make a query that will summarize the value of the CDs in the different categories.
Example
Title Category Price
xxx rock 10
yyy pop 12
zzz pop 11
xyz rock 10
should return:
rock 20 pop 23
I know how to make these summaries individually but how do I write the two of them in one statement??
select sum(Price) where Category ="rock"
select sum(Price) where Category ="pop"
How do I combine these statements into just the one query?
Any help appreciated