Answer to Question #258939 in Databases | SQL | Oracle | MS Access for Tarurendra Kushwah

Question #258939

Write a PL/SQL program to display the description against a grade according to the marks achieved by students in their final exams.


1
Expert's answer
2021-11-03T17:31:24-0400
DECLARE
    grade CHAR(1);
  BEGIN
    
    grade := '&new_grd';
  CASE grade 
    WHEN 'A' THEN dbms_output.Put_line('Outstanding');
    WHEN 'B' THEN dbms_output.Put_line(' Excellent');
    WHEN 'C' THEN dbms_output.Put_line('Very Good');
    WHEN 'D' THEN dbms_output. Put_line('Average');
    WHEN 'F' THEN dbms_output.Put_line('Poor');
    ELSE dbms_output.Put_line('Invalid Grade.');
  END CASE;	
  END;

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS