Receiving incorrect syntax near as when running this inner join. Need to determine why and cannot. Please point out where this goes wrong:
Relevant SQL Code
from
(
(
(dbo.task inner join dbo.projwbs on dbo.task.proj_id=dbo.projwbs.wbs_id) as tmptb1
inner join
(dbo.task inner join dbo.project on dbo.task.proj_id=dbo.project.proj_id) as tmptb2
on dbo.tmptb1.proj_id=dbo.tmptb2.proj_id as dbo.tmptb3
)
inner join
(
(dbo.task inner join dbo.rsrc on dbo.task.rsrc_id=dbo.rsrs.rsrc_id) as tmptb4)
on tmptb3.proj_id=tmptb4.proj_id
)
I might be missing something… but since these are all
inner joins, I’m not sure what the blocks are giving you that a simplified version wouldn’t also do: