Select empno,sum(cast(substring(othours,0,3)as float)) as
Hour,sum(cast(substring(othours,4,5)as float)) as Minutes from tmstrans
group by empno,othours
它显示如下数据
- 1 , 10
- 1 , 30
- 2 , 10
- 2 , 30
我需要如下数据
- 1 , 40
- 2 , 40
请帮忙
Select empno,sum(cast(substring(othours,0,3)as float)) as
Hour,sum(cast(substring(othours,4,5)as float)) as Minutes from tmstrans
group by empno,othours
它显示如下数据
我需要如下数据
请帮忙