left hours set by sql