• alan_lynch (3/5/2013)


    hi guys sorry for the confusion, all i want to do is concentrate on the first 3 columns

    so if the data shows this

    Adobe Inc,Version 1.3.1,Licensable,bla,bla,bla,bla

    Adobe Inc,Version 1.3.1,Licensable,bla,bla,bla,different bla

    Sun Microsystems, Version 11.3.1,bla,bla,bla,bla

    Sun Microsystems, Version 11.3.1,bla,bla,bla,bla

    Sun Microsystems, Version 11.3.1,bla,bla,bla,different bla

    Sun Microsystems, Version 11.4.1,bla,bla,bla,bla

    then i only want to remove the duplicate rows based on the first 3 columns being the same

    so it should show

    Adobe Inc,Version 1.3.1,Licensable,bla,bla,bla,bla

    Sun Microsystems, Version 11.3.1,bla,bla,bla,bla

    Sun Microsystems, Version 11.4.1,bla,bla,bla,bla

    ho[e this helps

    Did you run the code I posted above?

    “Write the query the simplest way. If through testing it becomes clear that the performance is inadequate, consider alternative query forms.” - Gail Shaw

    For fast, accurate and documented assistance in answering your questions, please read this article.
    Understanding and using APPLY, (I) and (II) Paul White
    Hidden RBAR: Triangular Joins / The "Numbers" or "Tally" Table: What it is and how it replaces a loop Jeff Moden