É simples
SUM()
com GROUP BY
:SELECT cardNo,sum(hours)
FROM yourtable
GROUP BY cardNo;
Deixei como exercício para o OP incluir as colunas userName e tablename na consulta
SUM()
com GROUP BY
:SELECT cardNo,sum(hours)
FROM yourtable
GROUP BY cardNo;