View Single Post
  #3 (permalink)  
Old 08-30-10, 17:51
shammat shammat is offline
Registered User
 
Join Date: Nov 2003
Posts: 2,407
Try this:
Code:
UPDATE abc
SET h = 'I' 
WHERE a IN (SELECT MIN(a) 
            FROM abc 
            GROUP BY C 
            HAVING COUNT(*) > 1)
Reply With Quote