Oracle PL/SQL Interactive Workbook

Overview

FREE Access to Interactive Oracle PL/SQL Training Web Site

  • Build Oracle PL/SQL applications-now!
  • No Oracle PL/SQL experience necessary!
  • Covers all key Oracle PL/SQL concepts
  • Real-life labs and "Test Your Thinking" Q&As

Start developing applications with Oracle PL/SQL-fast! This integrated book-and-Web learning solution teaches all of ...

See more details below
Available through our Marketplace sellers.
Other sellers (Paperback)
  • All (15) from $1.99   
  • New (3) from $31.99   
  • Used (12) from $1.99   
Close
Sort by
Page 1 of 1
Showing All
Note: Marketplace items are not eligible for any BN.com coupons and promotions
$31.99
Seller since Tue Jan 01 01:01:01 EST 2008

Feedback rating:

(171)

Condition:

New — never opened or used in original packaging.

Like New — packaging may have been opened. A "Like New" item is suitable to give as a gift.

Very Good — may have minor signs of wear on packaging but item works perfectly and has no damage.

Good — item is in good condition but packaging may have signs of shelf wear/aging or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Acceptable — item is in working order but may show signs of wear such as scratches or torn packaging. All specific defects should be noted in the Comments section associated with each item.

Used — An item that has been opened and may show signs of wear. All specific defects should be noted in the Comments section associated with each item.

Refurbished — A used item that has been renewed or updated and verified to be in proper working condition. Not necessarily completed by the original manufacturer.

New
0130157430 BRAND NEW NEVER USED IN STOCK 125,000+ HAPPY CUSTOMERS SHIP EVERY DAY WITH FREE TRACKING NUMBER

Ships from: fallbrook, CA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
$36.48
Seller since Tue Oct 07 09:35:53 EDT 2014

Feedback rating:

(294)

Condition: New
Brand New Item.

Ships from: Chatham, NJ

Usually ships in 1-2 business days

  • Canadian
  • International
  • Standard, 48 States
  • Standard (AK, HI)
  • Express, 48 States
  • Express (AK, HI)
$50.00
Seller since Tue Oct 07 09:37:03 EDT 2014

Feedback rating:

(184)

Condition: New
Brand new.

Ships from: acton, MA

Usually ships in 1-2 business days

  • Standard, 48 States
  • Standard (AK, HI)
Page 1 of 1
Showing All
Close
Sort by
Sending request ...

Overview

FREE Access to Interactive Oracle PL/SQL Training Web Site

  • Build Oracle PL/SQL applications-now!
  • No Oracle PL/SQL experience necessary!
  • Covers all key Oracle PL/SQL concepts
  • Real-life labs and "Test Your Thinking" Q&As

Start developing applications with Oracle PL/SQL-fast! This integrated book-and-Web learning solution teaches all of the Oracle PL/SQL skills you need, through hands-on, real-world labs, exercises, projects, and our great Web-based training site. You'll master PL/SQL syntax and structured programming, iterative control, scoping and anchored datatypes, cursors, triggers, security, tables-even sophisticated packaging and parameter passing techniques! Your free Web-based training module includes a Virtual Study Lounge where you can interact with the author, interactive Q&As, new projects, book updates, and more!

-Totally integrated with a FREE, state-of-the-art Oracle Forms learning Web site!

Every Prentice Hall Interactive Workbook is fully integrated with its own exclusive Web site, giving you all this and more:

  • "Test Your Thinking" project solutions and detailed explanations
  • Author's Corner: Your personal connection to this book's expert author
  • Additional self-review exercises with instant feedback and explanations
  • An exclusive Virtual Study Lounge where you can interact with other learners!

Just the facts! No endless, boring discussions here! You'll learn hands-on, through practical exercises, self-review questions and real-world answers. Exclusive "Test Your Thinking" projects guarantee you'll go beyond rote knowledgeto really master the subject! It's an integrated learning system that's proven to work!

Dozens of exercises cover the real-world tasks that matter most!

100s of self-review questions and answers make sure you understand!

Sample exercise from this title

Sample Self-Review Questions Page from this title

Read More Show Less

Editorial Reviews

Booknews
Using a series of labs with examples and exercises, this guide introduces how to write programs in PL/SQL with discussion of syntax and structured programming, iterative control, scoping and anchored databases, cursors, triggers, security, tables, and packaging and parameter passing techniques. Annotation c. Book News, Inc., Portland, OR (booknews.com)
Read More Show Less

Product Details

  • ISBN-13: 9780130157430
  • Publisher: Pearson Education
  • Publication date: 4/5/2000
  • Series: Prentice Hall Oracle Series
  • Edition description: Older Edition
  • Pages: 447
  • Product dimensions: 7.03 (w) x 9.25 (h) x 1.26 (d)

Meet the Author

BENJAMIN ROSENZWEIG is an Integration Specialist at IQ Financial Systems. Prior to that he was a principal consultant for more than 3 years at Oracle Corporation in the Custom Development Department. His computer experience ranges from creating an electronic Tibetan-English Dictionary in Kathmandu, Nepal, to supporting presentations centers at Goldman Sachs and managing a trading system at TIAA-CREF. His previous Prentice Hall PTR publications include Oracle PL/SQL: The Complete Video Course and Oracle Forms Developer: The Complete Video Course.

ELENA SILVESTROVA, a senior software engineer for a prominent New York brokerage firm and securities dealer, has taught relational database programming in Columbia University's CTA program during the past four years. She studied analysis and design at Columbia University and applied mathematics at Baku State University in Azerbaijan.

Read More Show Less

Read an Excerpt

PREFACE:

Introduction

The Oracle PL/SQL Interactive Workbook presents the Oracle PL/SQL programming language in a unique and highly effective format. It challenges you to learn Oracle PL/SQL by using it rather than by simply reading about it.

Just as a grammar workbook would teach you about nouns and verbs by first showing you examples and then asking you to write sentences, the Oracle PL/SQL workbook teaches you about cursors, procedures, and triggers by first showing you examples, and then asking you to create these objects yourself.

Who This Book Is For

This book is intended for anyone who needs a quick but detailed introduction to programming with Oracle's PL/SQL language. The ideal readers are those with some experience with relational databases, with some Oracle experience, specifically with SQL and SQL*Plus, but with little or no experience with PL/SQL, or with most other programming languages.

The content of this book is based on the material that is taught in an Introduction to PL/SQL class at Columbia University's CTA program New York City. The student body is rather diverse, in that there are some students who have years of experience with IT and programming, but no experience with Oracle PL/SQL, and then there are those with absolutely no experience in IT or programming. The content of the book, like the class, is balanced to meet the needs of both extremes.

How This Book Is Organized

The intent of this workbook is to teach you about Oracle PL/SQL by presenting you with a series of challenges followed by detailed solutions to those challenges. The basic structure of each chapter is asfollows:

Chapter Lab Exercises Exercise Answers with Detailed Discussion Self-Review Questions Lab... Test Your Thinking Questions

Each chapter contains interactive Labs that introduce topics about Oracle PL/SQL. The topics are discussed briefly and then explored though exercises, which are the heart of each Lab.

Each Exercise consists of a series of steps that you will follow to perform a specific task, along with questions that are designed to help you discover the important things about PL/SQL programming on your own. The answers to these questions are given at the end of the Exercises, along with more in-depth discussion of the concepts explored.

The Exercises are not meant to be closed book quizzes to test your knowledge. On the contrary, they are intended to act as your guide and walk you through a task. So, you are encouraged to flip back and forth from the Exercise question section to the Exercise answer section so that, if need be, you can read the answers and discussions as you go along.

At the end of each Lab is a series of multiple-choice Self-Review Questions. These are meant to be closed book quizzes to test that you have the Lab material. The answers to these questions appear in Appendix A. There are also additional Self-Review Questions at this book's companion Web site, found at ...

Read More Show Less

Table of Contents

CONTENTS

(NOTE: All chapters conclude with Test Your Thinking.)
1. Programming Concepts.

The Nature of a Computer Program. Good Programming Practices.

2. PL/SQL Concepts.
PL/SQL in Client-Server Architecture. PL/SQL in SQL*Plus.

3. General Programming Language Fundamentals.
PL/SQL Programming Fundamentals.

4. SQL in PL/SQL.
Making use of DML in PL/QL. Making Use of Savepoint.

5. Conditional Control.
IF Satements. ELSIF Statements. Nested IF Statements.

6. Exception Handling and Built-In Exceptions.
Handling Errors. Built-In Exceptions.

7. Iterative Control.
Simple Loops. WHILE Loops. Numeric FOR Loops. Nested Loops.

8. Introduction to Cursors.
Cursor Manipulation. Using Cursor FOR Loops and Nesting Cursors. Using PARAMETERS with Cursors.

9. Exceptions.
Exception Scope. USER-DEFINED Exceptions. Exception Propagation.

10. Exceptions: Advanced Concepts.
RAISE_APPLICATION_ERROR. EXCEPTION_INIT pragma. SQLCODE and SQLERRM.

11. Procedures.
Creating Procedures. Passing Parameters IN and OUT of Procedures.

12. Functions.
Creating and Using Functions.

13. Packages.
The Benefits of Utilizing Packages.

14. Stored Code.
Advanced Features of Stored Code.

15. Triggers.
What Triggers Are. Types of Triggers. Mutating Table Issues.

16. PL/SQL Tables.
Making Use of PL/SQL Tables.

Appendix A: Answers to Self-Review Questions.
Appendix B: PL/SQL Formatting Guide.
Appendix C: Student Database Scheme.
Index.
Read More Show Less

Preface

Introduction

The Oracle PL/SQL Interactive Workbook, 2nd edition, presents the Oracle PL/SQL programming language in a unique and highly effective format. It challenges you to learn Oracle PL/SQL by using it rather than by simply reading about it.

Just as a grammar workbook would teach you about nouns and verbs by first showing you examples and then asking you to write sentences, the Oracle PL/SQL Interactive Workbook teaches you about cursors, loops, procedures, triggers, and so on by first showing you examples and then asking you to create these objects yourself.

Who This Book Is For

This book is intended for anyone who needs a quick but detailed introduction to programming with Oracle's PL/SQL language. The ideal readers are those with some relational database experience, with some Oracle experience, specifically with SQL and SQL*Plus, but with little or no experience with PL/SQL or with most other programming languages.

The content of this book is based on the material that is taught in an Introduction to PL/SQL class at Columbia University's Computer Technology and Applications (CTA) program in New York City. The student body is rather diverse, in that there are some students who have years of experience with information technology (IT) and programming, but no experience with Oracle PL/SQL, and then there are those with absolutely no experience in IT or programming. The content of the book, like the class, is balanced to meet the needs of both extremes. The exercises in this book can be used as lab and homework assignments to accompany the lectures in such a PL/SQL course.

How This Book Is Organized

The intent of thisworkbook is to teach you about Oracle PL/SQL by presenting you with a series of challenges followed by detailed solutions to those challenges. The basic structure of each chapter is as follows:

Chapter Lab Exercises Exercise Answers (with detailed discussion) Self-Review Questions Lab . . . Test Your Thinking Questions

Each chapter contains interactive labs that introduce topics about Oracle PL/SQL. The topics are discussed briefly and then explored though exercises, which are the heart of each lab.

Each exercise consists of a series of steps that you will follow to perform a specific task, along with questions that are designed to help you discover the important things about PL/SQL programming on your own. The answers to these questions are given at the end of the Exercises, along with more in-depth discussion of the concepts explored.

The exercises are not meant to be closed-book quizzes to test your knowledge. On the contrary, they are intended to act as your guide and walk you through a task. You are encouraged to flip back and forth from the exercise question section to the exercise answer section so that, if need be, you can read the answers and discussions as you go along.

At the end of each lab is a series of multiple-choice self-review questions. These are meant to be closed-book quizzes to test how well you understood the lab material. The answers to these questions appear in Appendix A.

Finally, at the end of each chapter you will find a Test Your Thinking section, which consists of a series of projects designed to solidify all of the skills you have learned in the chapter. If you have successfully completed all of the labs in the chapter, you should be able to tackle these projects with few problems. You will find guidance and/or solutions to these in Appendix D and at the companion Web site.

About The Companion Web Site

The companion Web site is located at

http://www.phptr.com/rosenzweig2e/

Here you will find two very important things:


  • Files you will need before you begin reading the workbook: all of the exercises and questions are based on a sample database called STUDENT. The files required to create and install the STUDENT schema are downloadable from the Web site.
  • Answers to the Test Your Thinking questions.

In addition to required files and Test Your Thinking answers, the Web site will have many other features, like message board and periodically updated information about the book. There may also be some additional PL/SQL assignments without answers that can be used for graded homework.

You should visit the companion Web site, download the student schema, and install it in your database.

What You Will Need

There are software programs as well as knowledge requirements necessary to complete the exercise sections of the workbook. Note that some features covered throughout the workbook are applicable to Oracle 9i only. However, you will be able to complete a great majority of the exercise sections by using the following products:

Software

  • Oracle 7.3.4 or higher
  • SQL*Plus 3.3 or higher
  • Access to the Internet
  • Windows 95/98/2000 or NT 4.0

Oracle 9i

Oracle 9i is Oracle's RDBMS and its flagship product. You can use either Oracle Personal Edition or Oracle Enterprise Edition. If you use Oracle Enterprise Edition, this can be running on a remote server or locally on your own machine. Oracle 9.0.1.1.1 Enterprise Edition running locally was used to create the exercises for this book, but subsequent versions should be compatible (the Web site will also have scripts to create a database that will function for Oracle 7.3 and above, although features specified as Oracle 9i will not run in versions below Oracle 9).

Additionally, you should have access to and be familiar with SQL*Plus. This book was used running SQL*Plus version 9.0.1.0.1.

You have a number of options for how to edit and run scripts from SQL*Plus. There are also many third-party programs to edit and debug PL/SQL code. SQL*Plus is used throughout this book, since SQL*Plus comes with the Oracle Personal Edition and Enterprise Edition 9.0.1.0.1.

Using SQL*Plus

You should be familiar with using SQL*Plus to execute SQL statements (if not, then refer to another book in the Prentice Hall Interactive Oracle Series on this topic, Morrison/Rishchert's Oracle SQL Interactive Workbook, 2nd ed., 2004). There are a few key differences between executing SQL statements in SQL*Plus and executing PL/SQL statements in SQL*Plus. You will be introduced to these differences so that you can work with the exercises in this book.

You can end an SQL Command in SQL*Plus in one of three ways:

  • with a semicolon (;)
  • with a forward slash (/) on a line by itself
  • with a blank line

The semicolon (;) tells SQL*Plus that you want to run the command that you have just entered. You type the semicolon at the end of the SELECT statement and then press return. SQL*Plus will process what is in the SQL Buffer (described next).

n FOR EXAMPLESQL> SELECT sysdate 2 FROM dual 3 ;SYSDATE---------28-JUL-02SQL>

The SQL Buffer

SQL*Plus will store the SQL command or PL/SQL block that you have most recently entered in an area of memory known as the SQL Buffer. The SQL Buffer will remain unchanged until you enter a new command or exit your SQL*Plus session. You can easily edit the contents of the SQL Buffer by typing the EDIT command at the SQL prompt. The default text editor will open with the contents of the SQL Buffer. You can edit and save the file and then exit the editor. This will cause the contents of the SQL Buffer to change to your last saved version.

SQL*Plus commands such as SET SERVEROUTPUT ON are not captured into the SQL Buffer, nor does SQL*Plus store the semicolon or the forward slash you type to execute a command in the SQL buffer.

When you create stored procedures, functions, or packages, you begin with the CREATE command. When you begin a PL/SQL block, you start by entering the word DECLARE or BEGIN. Typing either BEGIN, DECLARE, or CREATE will put the SQL*Plus session into PL/SQL mode.

Running PL/SQL Blocks in SQL*Plus

Once you are in PL/SQL mode, you will not be able to end the block in the same manner that you ended a SQL block. The semicolon (;) can be used multiple times in a single PL/SQL block; thus when you end a line with a semicolon you will not terminate the block. You can terminate the PL/SQL block in the SQL Buffer by entering a period (.). This will end the block and leave the block in the SQL Buffer, but it will not execute it. At this point you have a choice of typing the EDIT command to edit the block or executing it with a forward slash (/) or a SQL*Plus command RUN.

n FOR EXAMPLE

You may enter and execute a PL/SQL subprogram as follows:

SQL> BEGIN 2 DBMS_OUTPUT.PUT_LINE ('This is a PL/SQL Block'); 3 END; 4 .SQL> /This is a PL/SQL BlockPL/SQL procedure successfully completed.

If want to run a script file at a later date, you must remember to terminate it with a period (.) and/or forward slash (/) before saving it on your computer. If you simply want to put the code into the SQL Buffer and then execute it, you can end the script with a forward slash (/).

You should terminate PL/SQL blocks stored in the script file with the period if you want to put the code in the SQL Buffer. You should end the script with forward slash (/) if you want the PL/SQL code in the file to execute.

The failure to end your PL/SQL block with a period (.) and/or a forward slash (/) will prevent your block from executing.

About The Sample Schema

The STUDENT schema contains tables and other objects meant to keep information about a registration and enrollment system for a fictitious university. There are ten tables in the system that store data about students, courses, instructors, and so on. In addition to storing contact information (addresses and telephone numbers) for students and instructors, and descriptive information about courses (costs and prerequisites), the schema also keeps track of the sections for particular courses, and the sections in which students have enrolled.

The SECTION is one of the most important tables in the schema because it stores data about the individual sections that have been created for each course. Each section record also stores information about where and when the section will meet and which instructor will teach the section. The section table is related to the COURSE and INSTRUCTOR tables.

The ENROLLMENT table is equally important because it keeps track of which students have enrolled in which sections. Each enrollment record also stores information about the student's grade and enrollment date. The enrollment table is related to the STUDENT and SECTION tables.

The schema also has a number of other tables that manage grading for each student in each section.

Read More Show Less

Customer Reviews

Be the first to write a review
( 0 )
Rating Distribution

5 Star

(0)

4 Star

(0)

3 Star

(0)

2 Star

(0)

1 Star

(0)

    If you find inappropriate content, please report it to Barnes & Noble
    Why is this product inappropriate?
    Comments (optional)