I have a problem and a question at the same time, I made a function to view billed requests and declare a function variable like this:
select filsaida
into v_loja
from mov_itped where pedido= p_pedido and status <> 6;
end ;
When you have a record that matches the WHERE
clause, the function returns normal, but when it does not return a record, it gives the error ORA-01403: data not found.