This is my Table called "SAM"
ID | S_Date | S_MK | TID | Value | =============================================== 1 | 2012-12-11 | 1
SELECT *, SUM(Value) AS Value From SAM GROUP BY TID
This will return the same table by summing up the Value column of the same TID column.
Value
TID