Re: Repost - Grouping query
- From: "Red via AccessMonster.com" <u15475@uwe>
- Date: Wed, 24 May 2006 13:09:42 GMT
Hi Michel,
Thanks for youe reply. Your SQL worked exactly as I wanted it to for
QuestionNumber. I've been trying to manipulate it to include the rest of the
fields with no luck. Any suggestions on how to incorporate the rest of my
required fields Value and PassValue into this SQL?
Many Thanks for your help.
Red
Michel Walsh wrote:
Hi,
COUNT(*) will count the number of records, COUNT(Value) will count the
number of records where the value is not null (not n/a).
SELECT QuestionNumber, COUNT(*), COUNT(Value)
FROM mytable
GROUP BY QuestionNumber
seems to be what you need.
Hoping it may help,
Vanderghast, Access MVP
After much research on this site, have come to the following conclusions[quoted text clipped - 52 lines]
on
Thanks in advance for any advice given.
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/Forums.aspx/access-queries/200605/1
.
- Follow-Ups:
- Re: Repost - Grouping query
- From: Michel Walsh
- Re: Repost - Grouping query
- References:
- Repost - Grouping query
- From: Red via AccessMonster.com
- Re: Repost - Grouping query
- From: Michel Walsh
- Repost - Grouping query
- Prev by Date: Re: outer Join and NULL values...?!?!!!
- Next by Date: Re: Query Help
- Previous by thread: Re: Repost - Grouping query
- Next by thread: Re: Repost - Grouping query
- Index(es):