Is it possible to add one datetime field value like 2013-06-22 09:46:00 to one or more integer field value like1(represents days column)2(represents hours column) then the result obtain after adding datetime value to integer must be in datetime form, so that i can compare with another datetime field value.
Like if i get the result after adding with the integer field 2013-06-23 11:46:00, i wants to compare it with another datetime field value, so that if the result value is greater than the compared value then only it w'll give me result.
I know how it w'll work in php but i wants to do through query.
Any help will be appreciated.