Assuming that hours is a timestamp data type, I would try something like:
select hours, vl_time, date_part('hour', hours) * vl_time as bonus
Last edited by loquin; 05-11-12 at 18:59.
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert