I have table look like the following
| Col1 | Col2(nvarchar) | Col3 |
|---|---|---|
| 1 | 2/4 | 100 |
| 1 | 2/4 | 200 |
| 2 | 1/3 | 140 |
| 3 | 2/3 | 120 |
| 4 | 3/4 | 200 |
Result would be:
The sum of column 3 group by column 1 + column 3 of 2 and column 3 of 4
(excluding the / from col 2)
For example, 1st row will be 100 + 200 + 140 + 200 = 640.
Result would be like the following:
| Col1 | Sum |
|---|---|
| 1 | 640 |
| 2 | 560 |
| 3 | 380 |
| 4 | 520 |
How can I make or what would be the query in sql server to get such resultant one?