Question
The following code is supposed to display the lowest and highest elevations for a country name entered by the user. However, the code does not
The following code is supposed to display the lowest and highest elevations for a country name entered by the user. However, the code does not work. Fix the code by following the guidelines for retrieving data that you learned in this lesson. DECLARE v_country_name countries.country_name%TYPE := Federative Republic of Brazil; v_lowest_elevation countries.lowest_elevation%TYPE; v_highest_elevation countries.highest_elevation%TYPE; BEGIN SELECT lowest_elevation, highest_elevation FROM countries; DBMS_OUTPUT.PUT_LINE('The lowest elevation in ' || v_country_name || ' is ' || v_lowest_elevation || ' and the highest elevation is ' || v_highest_elevation || '.'); END;
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started