Skip to content
Advertisement

sql deleting duplicate row

I have a table in SQL

i want only one owner_id i don’t want 100 multiple times, but i want amount of all owner_id 100 i,e that amount should be added(i,e. 1000+3000+12000) if i delete duplicate Owner_id row. how to do it

And one more issue that owner_id from another table, how to get Owner name from another table. How to add join to get name of the owner

Advertisement

Answer

try this :

User contributions licensed under: CC BY-SA
5 People found this is helpful
Advertisement