I want to create a stored procedure with one argument which will return different sets of records depending on the argument. What is the way to do this? Can I call it from p
create procedure (p_cur out sys_refcursor) as begin open p_cur for select * from end;