First of all I have a table called Varieties. It has 4 fields: ID, Variety, Acres, Year of Planting.
From this I want to make a pie chart of the total acreage of each variety, with 6 categories: 4 slices of the 4 most popular varieties, 1 for other, and 1 for unknown.
Here is my query so far:
SELECT Varieties.Variety, Sum(Varieties.Acres) AS SumOfAcres
FROM Varieties
WHERE (((Varieties.ID)>2500 And (Varieties.ID)<3000))
GROUP BY Varieties.Variety
HAVING (((Varieties.Variety) In ("Bluecrop","Duke","Elliott","Reka")));
It totals the acreage of the 4 most popular varieties just fine.
I need some help in creating the other 2 slices: Unknown and Other.
The problems I have are:
Unknown varieties are not labelled as such, the variety is just left blank.
Grouping several varieties into the "other" category.
Thanks for any suggestions.
Eadie
From this I want to make a pie chart of the total acreage of each variety, with 6 categories: 4 slices of the 4 most popular varieties, 1 for other, and 1 for unknown.
Here is my query so far:
SELECT Varieties.Variety, Sum(Varieties.Acres) AS SumOfAcres
FROM Varieties
WHERE (((Varieties.ID)>2500 And (Varieties.ID)<3000))
GROUP BY Varieties.Variety
HAVING (((Varieties.Variety) In ("Bluecrop","Duke","Elliott","Reka")));
It totals the acreage of the 4 most popular varieties just fine.
I need some help in creating the other 2 slices: Unknown and Other.
The problems I have are:
Unknown varieties are not labelled as such, the variety is just left blank.
Grouping several varieties into the "other" category.
Thanks for any suggestions.
Eadie