Skip to Content
Oracle® PL/SQL® Interactive Workbook, Second Edition
book

Oracle® PL/SQL® Interactive Workbook, Second Edition

by Benjamin Rosenzweig, Elena Silvestrova
October 2002
Intermediate to advanced
688 pages
14h 14m
English
Pearson
Content preview from Oracle® PL/SQL® Interactive Workbook, Second Edition

Chapter 2 Test Your Thinking

In this chapter you learned about PL/SQL concepts. You explored PL/SQL block structure, substitution variables, and the DBMS_OUTPUT.PUT_LINE statement. Here are some exercises that will help you test the depth of your understanding.

1) In order to calculate the area of a circle, the circle’s radius must be squared and then multiplied by π. Write a program that calculates the area of a circle. The value for the radius should by provided with the help of a substitution variable. Use 3.14 for the value of π. Once the area of the circle is calculated, display it on the screen.
2) Rewrite the script ch02_2b.sql, version 2.0. In the output produced by the script, extra spaces appear after the day of the week. The new script ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Enterprise Manager 10g Grid Control Handbook

Oracle Enterprise Manager 10g Grid Control Handbook

Werner De Gruyter, Matthew Hart, Daniel Nguyen
What Employees Want Most in Uncertain Times

What Employees Want Most in Uncertain Times

Kristine W. Powers, Jessica B.B. Diaz
Oracle® Database 10g Insider Solutions

Oracle® Database 10g Insider Solutions

Arun Kumar R., John Kanagaraj, Richard Stroupe

Publisher Resources

ISBN: 0130473200Purchase book