I have this mysql table.
name | column bob11 | value bob22 | value red12 | value bam22 | value What i want to do is to add the numbers 11 and 22 because the name bob is just the same. I want to output it this way together with the other names.
name | column bob33 | value red12 | value bam22 | value I know already how to get the column with the same value by this code.
"SELECT name, COUNT(*) as count FROM table GROUP BY name HAVING COUNT(*) > 1" But i don't know how to do the operation. Any idea would be much appreciated. thanks
substrcommand. Sorry but your query is a little general and that's the best I can give you