Quantcast
Channel: SQL Server Reporting Services, Power View forum
Viewing all articles
Browse latest Browse all 10045

Used column aliases; still getting "item with same key" error.

$
0
0

I have used Report Builder (3.0) many, many times, but this one query is driving me insane.

Here is my query. All the tables actually contain the "ItemID" field. I tried adding an alias for each one to see if that would work. It did not. Is it because they're used in the join? 


SELECT
tst.ITEMID as ItemA
,tsl.ITEMID as ItemB

,tpt.NEXTHIGHERASSY
,tpt.TOPLEVELASSY
,tst.CMINVENTVERSIONID
,it.ITEMNAME 
,tst.INVENTSERIALID 
,tsl.REFERENCEDESIGNATOR
,tsl.INVENTSERIALID 
,tsl.TRACEABILITYLOTDATECODE
,tsl.APPROVED



  FROM TRACEABILITYSHEETTABLE tst

  join inventtable it
  on tst.itemid = it.itemid

  join TRACEABILITYTEMPLATETABLE tpt
  on tst.ITEMID = tpt.ITEMID

  join TRACEABILITYSHEETLINE tsl
  on tsl.TRACEABILITYID = tst.TRACEABILITYID

        

Viewing all articles
Browse latest Browse all 10045

Trending Articles