SET SERVEROUTPUT ON
DECLARE
  atlfiz EMP.SAL%TYPE;
  sorsz INTEGER;
BEGIN
  SELECT COUNT(*)
  INTO sorsz
  FROM EMP;
  
  SELECT AVG(SAL)
  INTO atlfiz
  FROM EMP;
  
  DBMS_OUTPUT.PUT_LINE('Sorok szama: ' || sorsz || ', fizetesek atlaga: ' || atlfiz); 

END;