Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Data Management Databases And Organizations

Authors: Richard T. Watson

3rd Edition

0471418455, 978-0471418450

More Books

Students also viewed these Databases questions

Question

Azure Analytics is a suite made up of which three tools?

Answered: 1 week ago