The following function is supposed to return information relating to a particular meeting, stored in a meeting table:

CREATE TABLE  "MEETING" 
   (    "MEETING_ID" NUMBER(10,0) NOT NULL ENABLE, 
    "TIME" TIMESTAMP (4) NOT NULL ENABLE, 
    "LOCATION" VARCHAR2(40), 
    "MAP_HREF" VARCHAR2(140), 
    "FK_INTEREST_ID" CHAR(4) NOT NULL ENABLE, 
    "ADDITIONAL_INFO" CLOB, 
    "PASSED" NUMBER(1,0), 
    "TITLE" VARCHAR2(20), 
     CONSTRAINT "MEETING_PK" PRIMARY KEY ("MEETING_ID") ENABLE
   ) ;


The code compiles just fine, and runs fine as well.

However, if the meeting exists, only null is returned. If the meeting doesn't exist the exception prints 'UNKNOWN APPOINTMENT' correctly.

CREATE OR REPLACE FUNCTION GetMeeting
                    (meetingnumber MEETING.MEETING_ID%TYPE)
RETURN VARCHAR
IS
    CURSOR current_meeting(meetingnumber MEETING.MEETING_ID%TYPE)
    IS
        SELECT TITLE
        FROM MEETING
        WHERE MEETING_ID = meetingnumber;

    r_meeting current_meeting%ROWTYPE;
BEGIN
    OPEN current_meeting(meetingnumber);

    FETCH current_meeting INTO r_meeting;

    IF current_meeting%NOTFOUND THEN
        r_meeting.TITLE := 'UNKNOWN APPOINTMENT';
    END IF;

    CLOSE current_meeting;

    RETURN r_meeting.TITLE;
END;


SELECT GetMeeting (27) appointment
FROM MEETING;



Question: Why is CuSO4 used as electrolyte while purifying copper?
Answer: During copper electrorefining, impure $\ce{Cu}$ from the anode is oxidized and dissolved, while $\ce{Cu^2+}$ is reduced at the cathode, forming the deposit of refined copper. Because anodic impurities which are less noble than copper – most notably $\ce{Ni}$, $\ce{As}$ and $\ce{Sb}$ – also dissolve in the electrolyte, the cell voltage is kept in the range of 0.2-0.4 V to avoid co-deposition of these metals at the cathode. 

Copper dissolution is the main oxidation half-reaction at the anode, and the oxidation of anions from the electrolyte needs to be minimized, since it is an unwanted side reaction which reduces current efficiency of the process. In a $\ce{CuSO4}$ electrolyte, this would be oxidation of $\ce{OH-}$ (from water dissociation, so concentration will be low) to $\ce{O2}$, while in a $\ce{CuCl2}$ solution, $\ce{Cl-}$ will be oxidized to chlorine gas, which would present a greater hazard because of its toxicity.

The electric conductivity of the electrolyte is another important factor, which varies with different copper salts and their concentrations. $\ce{CuCl2}$ and $\ce{CuSO4}$ are both readily soluble in water; however, the relative molar conductivities of these solutions will be different. In this study, a copper chloride electrolyte proved to be inferior to copper sulfate and copper nitrate in terms of deposit quality and stability of cell potential.