Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Software > Access Queries > Counting Query
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 3 Topic 41187 of 43104
Post > Topic >>

Counting Query

by =?Utf-8?B?TG92ZSBCdXp6?= <LoveBuzz@[EMAIL PROTECTED] > Aug 5, 2008 at 04:16 PM

Hi all.

I am sure this is an easy question.  With the query below I am trying to 
count the number of records in a queue, and then group the results as you
see 
below.  It is counting fine, but the result is not the total for that
queue.  
It looks like the total for that queue for one day.  For example, when I 
select the range of 07/01 through 07/31, I get 22 individual totals for a 
particular queue instead of just one total count for the time period I 
selected.

I hope that made sense.  Thanks for your help. 

SELECT [Incoming Return Item Detail].Type, [Incoming Return Item 
Detail].queue, Count([Incoming Return Item Detail].queue) AS CountOfqueue,

[Queues and Descriptions].[Queue Name], [Incoming Return Sources].[Source 
Name]
FROM [Incoming Return Sources] INNER JOIN ([Incoming Return Item Detail] 
INNER JOIN [Queues and Descriptions] ON [Incoming Return Item
Detail].queue = 
[Queues and Descriptions].Queue) ON [Incoming Return Sources].Source = 
[Incoming Return Item Detail].Source
WHERE ((([Incoming Return Item Detail].Date) Between [Start Date] And [End

Date]))
GROUP BY [Incoming Return Item Detail].Type, [Incoming Return Item 
Detail].queue, [Queues and Descriptions].[Queue Name], [Incoming Return 
Sources].[Source Name]
HAVING ((([Incoming Return Item Detail].Type)=" X937"));
 




 3 Posts in Topic:
Counting Query
=?Utf-8?B?TG92ZSBCdXp6?=   2008-08-05 16:16:04 
Re: Counting Query
Lord Kelvan <the_iddio  2008-08-05 16:39:46 
Re: Counting Query
John W. Vinson <jvinso  2008-08-05 18:23:50 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Thu Nov 20 20:37:55 CST 2008.