Howlsta
Vampire Slayer
- Local time
- Today, 06:02
- Joined
- Jul 18, 2001
- Messages
- 180
Hi,
Someone has asked me to do a bunch of queries I thought they looked easy and they might be, but i've got stuck.
most of the queries are of similar style, i'd like the output to be like this:
[Child Position] [Number] [Percentage]
Front Passenger
Rear-Right
Rear Centre
Rear Left
Unknown
Total 244 100
the number column will be the count of all children in each position. There are 244 children in the DB. Percentage column will obviously show the percentage of children in each position.
Do I have to do more than one query? As number and percentage aren't fields access doesn't seem to allow them in a crosstab, do I have to do a select query first to create them?
childposition is a field in one of my tables it stores numbers but 1 or corresponds to front passenger 3 is rear left etc... I can get a totals query to display all the posibilities and there totals, but how do I get it to but the total for everything on the last line as above?
thanks
Rich
Someone has asked me to do a bunch of queries I thought they looked easy and they might be, but i've got stuck.
most of the queries are of similar style, i'd like the output to be like this:
[Child Position] [Number] [Percentage]
Front Passenger
Rear-Right
Rear Centre
Rear Left
Unknown
Total 244 100
the number column will be the count of all children in each position. There are 244 children in the DB. Percentage column will obviously show the percentage of children in each position.
Do I have to do more than one query? As number and percentage aren't fields access doesn't seem to allow them in a crosstab, do I have to do a select query first to create them?
childposition is a field in one of my tables it stores numbers but 1 or corresponds to front passenger 3 is rear left etc... I can get a totals query to display all the posibilities and there totals, but how do I get it to but the total for everything on the last line as above?
thanks
Rich
Last edited: