A
Amin
So this is my query:
SELECT "a 15 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME < 15)
UNION
SELECT "b 30 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 15 AND 30)
UNION
SELECT "c 45 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 30 AND 45)
UNION
SELECT "d 1 hour" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 45 AND 60)
UNION
SELECT "e Over 1 hour" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME > 60)
ORDER BY Category;
What I want to see is how many workloads per day is seen with different
queue times. The form refers to the number of business days between two start
dates. When I run this without the unions, just the first queuetime under 15,
it finishes in a few seconds, but with the unions it takes forever (I know it
should take longer, but it's on the order of ten minutes). Why is this, and
is there a way I can get around it?
Thanks so much for any ideas,
Amin
SELECT "a 15 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME < 15)
UNION
SELECT "b 30 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 15 AND 30)
UNION
SELECT "c 45 Minutes" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 30 AND 45)
UNION
SELECT "d 1 hour" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME BETWEEN 45 AND 60)
UNION
SELECT "e Over 1 hour" AS Category,
ROUND((COUNT(*) / (Forms!Switchie!Days)),1) AS [Workloads Completed]
FROM [Strategy Fix 1]
WHERE (QUEUETIME > 60)
ORDER BY Category;
What I want to see is how many workloads per day is seen with different
queue times. The form refers to the number of business days between two start
dates. When I run this without the unions, just the first queuetime under 15,
it finishes in a few seconds, but with the unions it takes forever (I know it
should take longer, but it's on the order of ten minutes). Why is this, and
is there a way I can get around it?
Thanks so much for any ideas,
Amin