結果 : sum rows based on column value sql