I have three tables in my database.
First table is Employee:

Second table is EmployeeTimeIn : (HoursConsumed have time in seconds!)

Third table is EmployeeTimeOut:

I wrote the following SQL query which lists all the employees grouped by their IDs and working time of each time in session:
select
v.EID, e.EmployeeName, v.Time_In, v.Time_Out,
convert(varchar(5), SUM(v.HoursConsumed) / 3600) + ':' +
convert(varchar(5), SUM(v.HoursConsumed) % 3600 / 60) + ':' +
convert(varchar(5), (SUM(v.HoursConsumed) % 60)) as workingtime,
v.Date_Ref
from
(select
e1.EID, e1.Time_In, e2.Time_Out, e1.HoursConsumed,
CONVERT(VARCHAR(10), e1.Date_Ref, 111) as Date_Ref
from EmployeeTimeIn as e1, EmployeeTimeOut as e2
where e1.Refid = e2.Refid) as v, Employee as e
where v.EID = e.EmployeeID
group by
v.EID, e.EmployeeName, v.Time_In, v.Time_Out, v.HoursConsumed, v.Date_Ref;
It produces the following output:

I need to modify this query so that for each employee it shows the grand total working time in workingtime column. In this scenario It will display workingtime of 0:41:53 for EID 4 and 0:0:39 for EID 200.
Please advise.
(NOTE: final output should have three rows for this example data because i need to show Time In and Time Out fields in final table too!)
I assume that you always can convert WorkingTimeInSeconds to hours: