• alekya.kondam (9/10/2013)


    HI ,

    select * INTO Test FROM

    (

    select ROW_NUMBER()over(partition by customer order by customer) as counts ,customer,Contract

    from tablename

    ) A where counts > 1

    Select * from tablename where customer IN(SELECT customer from Test )

    Hope it helps 🙂 🙂

    I guess you posted in the wrong thread, because this has nothing to do with cross server querying.

    Not to mention this thread ended over 3 years ago...

    Need an answer? No, you need a question
    My blog at https://sqlkover.com.
    MCSE Business Intelligence - Microsoft Data Platform MVP