Access Query

aftabn10

Registered User.
Local time
Today, 20:30
Joined
Nov 4, 2008
Messages
96
I was wondering how i can convert the following query created in access to work in SQL.

TRANSFORM Count(daily_effectiveness.JOBTIME) AS CountOfJOBTIME
SELECT daily_effectiveness.EIN, Count(daily_effectiveness.JOBTIME) AS [Total Agent Work], Sum(daily_effectiveness.JOBTIME) AS [Total Time]
FROM daily_effectiveness
GROUP BY daily_effectiveness.EIN
PIVOT daily_effectiveness.ORBITQUEUE;

Thanks in advance.
 
SQL Server does not support crosstab queries, sorry....
 
Hi,

Thanks for your reply. Is their any other way this query could be written in SQL?
 
You have to make (all) the possible columns yourself using "case when" to shift the values to the right columns, then do a group by to count the columns

I hope you understand what I mean....
 

Users who are viewing this thread

Back
Top Bottom