I create this function for return sum of column d.cargaHr, but this funcition can not be create and this error show me
error(not allowed to return a result set from a fun