I have a varchar type column in my sql table, and am collecting the Working hours from that…
If I give workig hours like
WorkingHours
------------
1
5
8
I can find the sum of this WorkingHours column value like Sum(WorkingHours), but here I need to give more specific timings like
WorkingHours
------------
01:30
2
01:15
04:45
like this, is it possible to sum these values, I tried the same way, but I couldn’t come up with any solution, can anyone help me here….
Why do you store times as varchar? Use time or datetime of course…
Note that “2”, if convertable, would be 48 hours or 2 days. If you don’t want to fix your data or datatypes, then you’ll have to workaround this