Hi
i try to sum two column in Sql, but don't get it....
this way is not working....
sum(SUM(DISTINCTDATEDIFF(mi, dbo.WORK_HISTORY.WORK_BEGIN_TIME, dbo.WORK_HISTORY.WORK_END_TIME))+
sum(distinct datediff(mi, dbo.work_history.work_begin_date, dbo.work_history.work_end_date))) ,
and with that is not working to
SUM(DISTINCTDATEDIFF(mi, dbo.WORK_HISTORY.WORK_BEGIN_TIME, dbo.WORK_HISTORY.WORK_END_TIME)) as A ,
sum(distinct datediff(mi, dbo.work_history.work_begin_date, dbo.work_history.work_end_date)) as B, sum(A+B) as Result
can someone help me please... Thanks