I have a table in sql server 2008 r2. One of the fields in the table denotes how often a task runs. It is called everyMinutes
. This field holds integer values, ranging from 0, to 15, to 120 and beyond. How can I select this field, and cast it as a time so that it may be added to other times?
I have startTime
set as a time(7)
. I recognize I could do what I'm about to ask in sql. However my end goal is to do it in php.
I would like to query startTime
as well as everyMinutes
so that they can be easilly added together in php. I'm looking for to cast, or convert, or something everyMinutes
in the select statement so this can be done.