mysql - Multiply for Hours by Rate -


I have data stored in the database as follows.

  hour rate 02:37: 37 8.00   

I wrote a question like the following

  (Hour * rate) as payment from user_hours;   

I'm getting the result as "16" which is not right.

How do I get the right results?

Thanks, Raj

  SELECT (SUBSTRING (hours, 1,2) + SUBSTRING (hours, 4,2) / 60+ SUBSTRING (hours, 7,2) / 3600) * Payment from user_hours as a rate;    

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -