c# - Joining PIVOT table with data from two other tables with ACCESS -


i'm having trouble joining pivot table data 2 other tables. pivot table works fine when join it says 'syntax error in clause'

select r.resourcename 'employee name', p.projectnumber 'project number', p.projectsystem 'project system', p.projectmanager 'project manager', a.projectname 'project name' projects p left join  (transform sum(a.allocationvalue)  select r.resourcename, a.projectname                                                      resources r group a.resourcename, a.projectname pivot a.allocationmonth in ('june, 2014', 'july, 2014', 'august, 2014') q on p.resourcename = q.resourcename p.projectname = a.projectname  order r.resourcename, a.projectname 

any appreciated, thanks!

i don't think can have combination of implicit , explicit joins, , aliasing both table projects p, , subquery p.

instead of from projects p, resources r, implicit join, should make explicit join from projects p join resources r on p.whatever = r.whatever, , change alias of subquery isn't named p.

you have resources aliased r in both outer query , subquery, , that's conflict.

those issues see right off bat.


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -