I have a table t that looks like this (which is itself the result of a long SQL query):
ID | Name | Active | Sales ---------------------------------------------- 1 Amy t 50 2 Bill f 4 3 Chip t 127 4 Dana t 543 5 Eve f 20 I'm looking to combine the inactive users ("Active" = f) so that I end up with a resultant table like this:
ID | Name | Active | Sales ---------------------------------------------- 1 Amy t 50 3 Chip t 127 4 Dana t 543 0 - f 24 Is there a way to do this without repeating the initial query to get that table?