Escolar Documentos
Profissional Documentos
Cultura Documentos
AGRUPAR
AGRUPAR
V_RESULTADO VARCHAR(200);
BEGIN
IF TP_operacion = 'AGRUPAR' THEN
FOR c IN(Select sum(NUMERO) AS resultado INTO V_RESULTADO from A1 Group by
NUMERO ORDER BY NUMERO)
LOOP V_RESULTADO:=c.resultado;
DBMS_OUTPUT.PUT_LINE(V_RESULTADO);
END LOOP;
END IF;
END;
EXEC CALCULADORA('AGRUPAR')