Duplicate value from any Column

  • Hi all,

    How to get duplicate value from any column...

    suppose i hv a Table 'tblAuthorArticle'

    and three cols. AuthorArticleID, AuthorID, ArticleID

    how to get duplicate ArticleID...

    plz help...it's Urgent

  • Hi,

    You can try following

     

    select

    ArticleID from tblAuthorArticle group by ArticleID having count(ArticleID )>1

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

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