I have a datagridview in a windows form based on the following query :
select dbo.doss.behdr, dbo.doss.dosno, SUM(dbo.kbpres.uur) as SomUur, SUM(dbo.kbpres.minuut) as SomMinuut
FROM dbo.kbpres INNER JOIN dbo.doss ON dbo.kbpres.ino = dbo.doss.ino
WHERE (dbo.doss.behdr LIKE @cboBeheerder)
GROUP BY dbo.doss.behdr, dbo.doss.dosno
Now, the fields uur and minuut are just integers. So it might happen uur=4 and minuut=140. Now I would like to have this in a extra column that it says 6:20:00 which is 4hours plus 140minutes (2hours 20minutes).
Can I do that in the sql query or how can I do that programmaticaly??
In line conversion for multiple rows returned…
(I typed this freehand, so you may need to do some syntax updates)