Answer to Question #207675 in Databases | SQL | Oracle | MS Access for Oraclebless

Question #207675

1.Write a procedure that displays the number of countries in a given region (prompt for value) whose highest elevations exceed a given value (prompt for value). The procedure should accept two formal parameters, one for a region_id and the other for an elevation value for comparison. Use DBMS_OUTPUT.PUT_LINE to display the results in a message. Test your procedure using the value 5 for the region_id and 2000 for the highest evaluation


1
Expert's answer
2021-06-17T04:41:27-0400
USE `employeemanagementsystem`;
DROP procedure IF EXISTS `new_procedure`;
DELIMITER $$
USE `employeemanagementsystem`$$
CREATE PROCEDURE `new_procedure` ()
BEGIN
select region_id as DBMS_OUTPUT,highest_elevation as PUT_LINE
from table_name
where highest_elevation>2000;
END$$
DELIMITER ;

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