unknown
2009-10-29 17:13:07 UTC
this works fine, returns count quickly:
select count(distinct(empid)) as eecount
from pr_detail_view
whereas this does not, at least quickly, I've never waited
until it finished, if it ever would...
select eefile.eecount
from (select count(distinct(empid)) as eecount
from pr_detail_view) eefile
What am I doing wrong? Why the performance hit? Thanks....
select count(distinct(empid)) as eecount
from pr_detail_view
whereas this does not, at least quickly, I've never waited
until it finished, if it ever would...
select eefile.eecount
from (select count(distinct(empid)) as eecount
from pr_detail_view) eefile
What am I doing wrong? Why the performance hit? Thanks....