i have generated the difference between two rows of my data using this code.....
now i have the ElapsedSecond as one new row how can i save it into my table??
SELECT *,
DATEDIFF(second , A.End_Time,
(SELECT MIN(Start_Time)
FROM Callbycall as B
WHERE A.Agent = B.Agent
AND A.Start_Time < B.End_Time)) as ElapsedSecond
FROM Callbycall as A
now i have the ElapsedSecond as one new row how can i save it into my table??
SELECT *,
DATEDIFF(second , A.End_Time,
(SELECT MIN(Start_Time)
FROM Callbycall as B
WHERE A.Agent = B.Agent
AND A.Start_Time < B.End_Time)) as ElapsedSecond
FROM Callbycall as A
Comment