CREATE OR REPLACE PROCEDURE count_salas IS V_count NUMBER(3);
BEGIN
SELECT COUNT(SALES.SALEQTY) as sales INTO V_count
FROM SALES INNER JOIN EMPLOYEE ON EMPLOYEE.EMPID = SALES.EMPID WHERE EMPLOYEE.EMPID = '101';
DBMS_OUTPUT.PUT_LINE(V_count); END V_count;