Hi,
I'm stumped here! Hope someone can shed some light on this.
The following function retrieves the concatenated supervisor name when passed the supervisor's empid. Each of the First_Name & Last_Name fields is a Varchar2(50) so joined they should not exceed 102 characters (including comma & a space).
When I call this function in a View, it has been returned as a memo field Varchar2(4000). On the Oracle side this doesn't matter, but when I pull this view into a Crystal Report it comes through as a memo datatype and won't allow users to group on that field.
Does any one have any suggestions?
-----------------------------------------------------------
FUNCTION GET_SUPERVISOR
(Empid_In IN Varchar2)
RETURN VARCHAR2 IS
R_SUPERVISOR_NAME VARCHAR2(102);
BEGIN
Select LAST_NAME||', '||FIRST_NAME
into R_SUPERVISOR_NAME
from hris_employee_info
where empid = Empid_In;
RETURN R_SUPERVISOR_NAME;
END;
-------------------------------------------------------
Thanks in advance,
Q
I'm stumped here! Hope someone can shed some light on this.
The following function retrieves the concatenated supervisor name when passed the supervisor's empid. Each of the First_Name & Last_Name fields is a Varchar2(50) so joined they should not exceed 102 characters (including comma & a space).
When I call this function in a View, it has been returned as a memo field Varchar2(4000). On the Oracle side this doesn't matter, but when I pull this view into a Crystal Report it comes through as a memo datatype and won't allow users to group on that field.
Does any one have any suggestions?
-----------------------------------------------------------
FUNCTION GET_SUPERVISOR
(Empid_In IN Varchar2)
RETURN VARCHAR2 IS
R_SUPERVISOR_NAME VARCHAR2(102);
BEGIN
Select LAST_NAME||', '||FIRST_NAME
into R_SUPERVISOR_NAME
from hris_employee_info
where empid = Empid_In;
RETURN R_SUPERVISOR_NAME;
END;
-------------------------------------------------------
Thanks in advance,
Q