Código:
Gracias.CREATE OR REPLACE PROCEDURE up_PedidosXCliente ( p_IdCliente IN CHAR(5), p_oCursor OUT sys_refcursor ) IS BEGIN open p_oCursor for SELECT O.ORDERID , O.ORDERDATE FROM ORDERS O INNER JOIN CUSTOMERS C ON O.CUSTOMERID = C.CUSTOMERID WHERE C.CUSTOMERID = p_IdCliente; END;
Luis A.