G
Guest
I'm trying to create a query that will return the number of times the first 4
digits of a nine digiti number appear on a certain day such that the first
column will contain unique day values defined by StartDate and EndDate and
the remaining columns will contain the respective item counts from those
categories on those days. In SQL:
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT [Missent Table].RT, count(Left([Missent Table].RT,4)=1111) AS [Dallas
RCPC I]
FROM [Missent Table]
GROUP BY [Missent Table].[Date Sent Out]
HAVING ((([Missent Table].[Date Sent Out]) Between [Start Date] And [End
Date]));
All the data is in the same table (Missent Table). Using the above I get an
error message and using the following I get the total of ALL categories (in
every category) on a certain day:
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT [Missent Table].[Date Sent Out], Count(Left([Missent
Table].RT,4)=1111) AS [Dallas RCPC I]
FROM [Missent Table]
GROUP BY [Missent Table].[Date Sent Out]
HAVING ((([Missent Table].[Date Sent Out]) Between [Start Date] And [End
Date]));
If I've omitted any requisite information, please let me know. Thank you in
advance for the assistance.
digits of a nine digiti number appear on a certain day such that the first
column will contain unique day values defined by StartDate and EndDate and
the remaining columns will contain the respective item counts from those
categories on those days. In SQL:
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT [Missent Table].RT, count(Left([Missent Table].RT,4)=1111) AS [Dallas
RCPC I]
FROM [Missent Table]
GROUP BY [Missent Table].[Date Sent Out]
HAVING ((([Missent Table].[Date Sent Out]) Between [Start Date] And [End
Date]));
All the data is in the same table (Missent Table). Using the above I get an
error message and using the following I get the total of ALL categories (in
every category) on a certain day:
PARAMETERS [Start Date] DateTime, [End Date] DateTime;
SELECT [Missent Table].[Date Sent Out], Count(Left([Missent
Table].RT,4)=1111) AS [Dallas RCPC I]
FROM [Missent Table]
GROUP BY [Missent Table].[Date Sent Out]
HAVING ((([Missent Table].[Date Sent Out]) Between [Start Date] And [End
Date]));
If I've omitted any requisite information, please let me know. Thank you in
advance for the assistance.