Return one variable from a SELECT inside a function
问题 I'm trying to create a function that return a varchar, one of the fields form a select, the aggregation field. I'm getting the next error: ORA-01422: exact fetch returns more than requested number of rows What I understand is that the select produce more than one row before aggregating and this triggers the error when trying to put them 'into k, s, categories' Here is the function: FUNCTION get_cat(kind_id IN varchar, system_id IN Number) RETURN VARCHAR2 AS categories VARCHAR2(2000); k