simple Query error

  • select * from CIRC.SUBS_TAG a, DSIPROC.TRB_VW_SUBS_INFO b, CIRC.TAG c

    where a.ACCOUNT= b.ACCOUNT and a.CODE=c.CODE

    I typed this in the query field of Dataset and i get the following error

    <Field 12>

    More than one item has the name 'ACCOUNT'.

    Someone please help me why am i getting this error. Thanks.

  • Instead of using SELECT * you'd need to specify each column and use alias column names for the duplicates (like a.ACCOUNT, b.ACCOUNT, a.COD, c.CODE and maybe some more columns).

    The reason is rather simple: SSRS needs unique column names to identify each column. It's the same like creating a view.



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

  • LutzM (12/22/2010)


    Instead of using SELECT * you'd need to specify each column and use alias column names for the duplicates (like a.ACCOUNT, b.ACCOUNT, a.COD, c.CODE and maybe some more columns).

    The reason is rather simple: SSRS needs unique column names to identify each column. It's the same like creating a view.

    @LutzM:Thank you so much

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply