Chapter 19 Test Your Thinking


In this chapter, you learned about various types of records, nested records, and collections of records. Here are some projects that will help you test the depth of your understanding.

1)

Create the following script. Create an index-by table with the element type of a user -defined record. This record should contain first name, last name , and the total number of courses that a particular instructor teaches. Display the records of the index-by table on the screen.

2)

Modify the script created in project (1). Instead of using an index-by table, use a nested table.

3)

Modify the script created in project (2). Instead of using a nested table, use a varray.

4)

Create the following script. Create a user-defined record with three fields: course_no , description , cost , and prerequisite_rec . The last field, prerequisite_rec , should be a user-defined record with three fields: prereq_no , prereq_desc , and prereq_cost . For any ten courses that have a prerequisite course, populate the user-defined record with all corresponding data and display its information on the screen.


The projects in this section are meant to have you utilize all of the skills that you have acquired throughout this chapter. The answers to these projects can be found in Appendix D and at the companion Web site to this book, located at http://authors.phptr.com/rosezweig3e. Visit the Web site periodically to share and discuss your answers.




Oracle PL[s]SQL by Example
Oracle PL[s]SQL by Example
ISBN: 3642256902
EAN: N/A
Year: 2003
Pages: 289

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net