PostgreSQL - PL/pgSQL Fundamentals
Consider this PL/pgSQL snippet:
What will be the returned value?
DECLARE
grade CHAR := 'B';
result TEXT;
BEGIN
CASE grade
WHEN 'A' THEN result := 'Excellent';
WHEN 'B' THEN result := 'Good';
ELSE result := 'Average';
END CASE;
RETURN result;
END;What will be the returned value?
