Question: I have some CSS classes as:

```
  .span9 {
    width: 870px;
  }
  .span4 {
    width: 370px;
  }

```

In another custom CSS file I want to make another CSS class .span9? How do I do this?

The reason is because a DOM element uses .span4 and I want to override this but it must be overridden in a custom external CSS file.

Is this possible?

Answer: 
Unless I'm missing something, you just need three `SUM`s:

```
SELECT ID, SUM(Total1), SUM(Total2), SUM(Total3)
FROM myTable
GROUP BY ID

```

[SQL Fiddle example](http://www.sqlfiddle.com/#!6/7cb16/1)
```
select id, 
    sum(coalesce(total1,0)) as Total1, 
  sum(coalesce(total2,0)) as Total2, 
  sum(coalesce(total3,0))  as Total3
from t
group by id

```