F
Frustrated in AL
With much help from this discussion group, I have a query based on a table
that I will continue to add to. I need to be able to query by specific
dates. The dates do not show up anywhere else in the query and I am not sure
how to set up the parameters for the start and end dates. Below is the SQL
and the Field that I need to pull the dates from is [Date Worked on]. Thank
you in advance for your assistance.
SELECT [Resolved by Hospice Date Worked].Responsibility, Count(*) AS [Number
of Appeals], Count(*)/(SELECT COUNT(*) FROM [Resolved by Hospice Date
Worked]) AS [% of All Appeals], Sum([Resolved by Hospice Date Worked].[Sales
Amount]) AS [Cost of Appeals], Sum([Sales Amount])/(SELECT SUM ([Sales
Amount]) From [Resolved by Hospice Date Worked]) AS [% of Cost of All Appeals]
FROM [Resolved by Hospice Date Worked]
GROUP BY [Resolved by Hospice Date Worked].Responsibility;
that I will continue to add to. I need to be able to query by specific
dates. The dates do not show up anywhere else in the query and I am not sure
how to set up the parameters for the start and end dates. Below is the SQL
and the Field that I need to pull the dates from is [Date Worked on]. Thank
you in advance for your assistance.
SELECT [Resolved by Hospice Date Worked].Responsibility, Count(*) AS [Number
of Appeals], Count(*)/(SELECT COUNT(*) FROM [Resolved by Hospice Date
Worked]) AS [% of All Appeals], Sum([Resolved by Hospice Date Worked].[Sales
Amount]) AS [Cost of Appeals], Sum([Sales Amount])/(SELECT SUM ([Sales
Amount]) From [Resolved by Hospice Date Worked]) AS [% of Cost of All Appeals]
FROM [Resolved by Hospice Date Worked]
GROUP BY [Resolved by Hospice Date Worked].Responsibility;