I'm storing duration 1, 2,3, 4 , ...... and duration type days , or hours
the problem i want to sum all the duration the right way for example i want to add 1 day to 2 hours and so on
@randy_johnson
yes you are right but imagain theat i have two column one called duration that only have number for example 1, 2, 3, ... , and anthor column called duration type that can only has [days, hours]
so if a want to sort 3 hours => first colum will have the value 3 and the second column will have the value hours
my question is how to sum all rows in these two columns?
@Snapey In the UI I have two spearte inputs one is number input, and the other is select input with two options [days, hours] so the first thing jump to my mind was to design the database as so. but in your opinion if i can store the data in hours how can i display it. i must stick to the UI