saraann422
Technical User
Can you use an expression, in a SELECT statement in an Access Query that would take (from the following example) the first Select statement and divide it by the second?
Thanks!
Sarah
SELECT (Count([Date/Time])*5) AS QADateTimePR,
(SELECT (Count([Date/Time])*5) FROM [QC Information] WHERE [Analyst]=[First Last] AND ([Date/Time] IN ('1','2')) AND [Today's Date] Between [StartDate] AND [EndDate] AND ([Case Status] IN ('Expedite/Re-QC','Expedite','Re-QC','New'))) AS QADateTimePT,
FROM [QC Information]
WHERE [Analyst]=[First Last] AND [Date/Time]="1" AND [Today's Date] Between [StartDate] AND [EndDate] AND ([Case Status] IN ('Expedite/Re-QC','Expedite','Re-QC','New'));
Thanks!
Sarah
SELECT (Count([Date/Time])*5) AS QADateTimePR,
(SELECT (Count([Date/Time])*5) FROM [QC Information] WHERE [Analyst]=[First Last] AND ([Date/Time] IN ('1','2')) AND [Today's Date] Between [StartDate] AND [EndDate] AND ([Case Status] IN ('Expedite/Re-QC','Expedite','Re-QC','New'))) AS QADateTimePT,
FROM [QC Information]
WHERE [Analyst]=[First Last] AND [Date/Time]="1" AND [Today's Date] Between [StartDate] AND [EndDate] AND ([Case Status] IN ('Expedite/Re-QC','Expedite','Re-QC','New'));