MySQL Forums
Forum List  »  Newbie

Re: Query need to subtract the date in seconds.
Posted by: Peter Brawley
Date: October 02, 2015 08:12PM

Is this what you mean?

select Sum(t.value) - Time_to_Sec(Now()) From (
  select value from radcheck where username='test1' and attribute='dayA_to_dayB' 
  union all 
  select value from raduser_connection_time where username='test1'
) t;



Edited 1 time(s). Last edit at 10/02/2015 08:12PM by Peter Brawley.

Options: ReplyQuote


Subject
Written By
Posted
Re: Query need to subtract the date in seconds.
October 02, 2015 08:12PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.