Updating a table with only one occurence of row from another table

  • SELECT
       DISTINCT [Unique ID],
       SUM([Line Amount])
    FROM
       <tablename>
    GROUP BY
       [Unique ID]
     
     

    ******************
    Dinakar Nethi
    Life is short. Enjoy it.
    ******************

  • you don't need "distinct"

    SELECT

     [Unique ID],

        SUM([Line Amount])

    FROM

        <tablename>

    GROUP BY

        [Unique ID]


    * Noel

  • Thanks very much - that works fine

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

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