I need to display only the hours of the time. The following script is my attempt to do the same.
Example:
select left(visittime,2) from records;
Here visittime contains:
10:00:00;
So I need to display only the 10 from it. I have tried by using above script but I am getting an error.
Error:
function left(time without time zone, integer) does not exist