title: PLS-00103: Encountered the symbol "SELECT" pl/sql error
body: <pre><code>CREATE OR REPLACE FUNCTION f2
      (v_nume employee.last_name%TYPE DEFAULT 'Andrew') 
  RETURN NUMBER IS 
          salariu employee.salary%type; 
      BEGIN 
          SELECT salary 
          INTO salariu 
          FROM employee 
          WHERE last_name = v_nume; 
          RETURN salariu; 
      EXCEPTION 
          WHEN NO_DATA_FOUND THEN 
              RAISE_APPLICATION_ERROR(-20000, 'No employees'); 
          WHEN TOO_MANY_ROWS THEN 
              RAISE_APPLICATION_ERROR(-20001, 'Many employees'); 
          WHEN OTHERS THEN 
              RAISE_APPLICATION_ERROR(-20002,'Another error!'); 
  END f2;
  
  SELECT f2 FROM DUAL;
  </code></pre>
  <p>Hi! What should I do to repair this? Also, can I give to this function a table argument?</p>