database programming - section 14 - oracle...

34
Database Programming - Section 14 Instructor Guide

Upload: phungnguyet

Post on 08-May-2019

257 views

Category:

Documents


0 download

TRANSCRIPT

Database Programming - Section 14 Instructor Guide

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page i

Table of Contents

Database Programming - Section 14..............................................................................................................1 Lesson 1 - Oracle HTML DB Application Builder, Final Project Part 1.......................................................1 What Will I Learn? ........................................................................................................................................2 Why Learn It?................................................................................................................................................3 Tell Me / Show Me........................................................................................................................................4 Try It / Solve It ..............................................................................................................................................9 Lesson 2 - Oracle HTML DB Application Builder, Final Project Part 2.......................................................10 What Will I Learn? ........................................................................................................................................11 Why Learn It?................................................................................................................................................12 Tell Me / Show Me........................................................................................................................................13 Try It / Solve It ..............................................................................................................................................14 Lesson 3 - Oracle HTML DB Application Builder, Final Project Part 3.......................................................15 What Will I Learn? ........................................................................................................................................16 Why Learn It?................................................................................................................................................17 Tell Me / Show Me........................................................................................................................................18 Try It / Solve It ..............................................................................................................................................19 Lesson 4 - Oracle HTML DB Application Builder, Final Project Part 4.......................................................20 What Will I Learn? ........................................................................................................................................21 Why Learn It?................................................................................................................................................22 Tell Me / Show Me........................................................................................................................................23 Try It / Solve It ..............................................................................................................................................24 Lesson 5 - Oracle HTML DB Application Builder, Final Project Part 5.......................................................25 What Will I Learn? ........................................................................................................................................26 Why Learn It?................................................................................................................................................27 Tell Me / Show Me........................................................................................................................................28 Try It / Solve It ..............................................................................................................................................29

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 1

Lesson 1 - Oracle HTML DB Application Builder, Final Project Part 1

Lesson 1 - Oracle HTML DB Application Builder, Final Project Part 1

Lesson Preparation

Preread the Introduction and Part 1: Building the base tables and adding column constraints. What to Watch For

Application Builder is a very sophisticated tool. The steps in this project have been designed to lead students through the design process with a minimum amount of new information and frustration. Be aware that in cases where students have not followed directions, it may be necessary, in light of time constraints, to simply start over rather attempting to diagnose the error.

Connections After completing Part 1 of the final project, ask students what they applied from their database programming to complete Part 1. Answers should include: reading an ERD; understanding the basic structure of a database table, column, and constraints; understanding the relationship between tables and foreign and primary keys; determining data types and naming conventions.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 2

What Will I Learn?

What Will I Learn?

What Will I Learn?

Discuss each step of the project to explain the scope and outcomes for the Amazing Books database. The Amazing Books Final Project provides an opportunity for students to apply the concepts they have learned in Database Fundamentals and Database Programming to create a database application using the Oracle HTML DB Application Builder tool. This tool has many features and functions, which are beyond the scope of this course. However, with guided instruction, students can use Application Builder to create a sophisticated application.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 3

Why Learn It?

Why Learn It?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 4

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Read student content aloud with students.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 5

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Read student content aloud with students.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 6

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Students should access the Introduction while you explain the project. Review the steps to explain the scope and sequence of the project. Explain that each step has specific instructions that not only must be completed in sequence, but also must be followed for naming conventions and formatting according to the directions.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 7

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Students should access the Introduction while you explain the project. Review the steps to explain the scope and sequence of the project. Explain that each step has specific instructions that not only must be completed in sequence, but also must be followed for naming conventions and formatting according to the directions.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 8

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Explain the Final Project Rubric to the students. Modify the rubric for your own class, if you’d like. The rubric is a guide, but it is meant to assess each student's application of SQL and Application Builder. Presentation skills should be a minor part of the final grade.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 9

Try It / Solve It

Try It / Solve It

Try It / Solve It

Verify that all students have the Application Builder Part1 and are logged on to Oracle HTML DB. Part 1 uses SQL Workshop to create the tables.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 10

Lesson 2 - Oracle HTML DB Application Builder, Final Project Part 2

Lesson 2 - Oracle HTML DB Application Builder, Final Project Part 2

Lesson Preparation

Preread Part 2: Creating the application's pages, page style, and popup list of values (LOVs) What to Watch For

Verify that all the tables have been created correctly in Part 1. Ask students to do a DESCRIBE on each table to check that all the correct table names, column names, and constraints exist.

Connections After completing Part 2 of the final project, ask students what they applied from their database programming to complete Part 2. Answers should include: determining the information needs of the customer in order to complete each LOV, creating an application interface that meets the input requirements of customer.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 11

What Will I Learn?

What Will I Learn?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 12

Why Learn It?

Why Learn It?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 13

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Encourage students to follow the directions and to name each table and LOV as shown.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 14

Try It / Solve It

Try It / Solve It

Try It / Solve It

Make sure Part 1 has been successfully completed before going on to Part 2. Having the tables and constraints completed is essential for Part 2.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 15

Lesson 3 - Oracle HTML DB Application Builder, Final Project Part 3

Lesson 3 - Oracle HTML DB Application Builder, Final Project Part 3

Lesson Preparation

Preread Part 3: Creating the input forms and report regions for the application's CUSTOMERS, SUBJECTS, PUBLISHERS, and ITEM_TYPES pages.

What to Watch For Verify that all the application pages and LOVs have been created correctly in Part 2.

Connections Ask students what they applied from their database programming needed to complete Part 3. Answers should include: creating an application interface that meets the input requirements of a customer.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 16

What Will I Learn?

What Will I Learn?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 17

Why Learn It?

Why Learn It?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 18

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Help students get started in Part 3. Verify that Part 2 has been completed before going on to Part 3.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 19

Try It / Solve It

Try It / Solve It

Try It / Solve It

Make sure Part 2 has been successfully completed before going on to Part 3.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 20

Lesson 4 - Oracle HTML DB Application Builder, Final Project Part 4

Lesson 4 - Oracle HTML DB Application Builder, Final Project Part 4

Lesson Preparation

Preread Part 4: Inputting data into the CUSTOMERS, SUBJECTS, PUBLISHERS, and ITEM_TYPES tables.

What to Watch For Students may attempt to add data to all tables. They must only add to the tables specified in the directions.

Connections Ask students what they applied from their database programming needed to complete Part 4. Answers should include: determining "real" examples of data. -- for example, book subjects, book publishers, and the types of items a bookstore sells in addition to books -- and accurately determining and entering customer data.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 21

What Will I Learn?

What Will I Learn?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 22

Why Learn It?

Why Learn It?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 23

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Read Part 4 to the students. The teacher's version of the Introduction.doc has sample data for each of the tables, but students should create their own data. Students may need help getting started. Encourage them to be as realistic as possible, not just make up frivolous data. Refer to the Final Project Rubric and explain that this project will be assessed on a professional level. Students may want to browse Amazon.com or other booksellers’ websites to identify realistic data.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 24

Try It / Solve It

Try It / Solve It

Try It / Solve It

Remind students that data must be entered into these four tables only. Data for the other tables will be generated via popup LOVs from these four tables. This is a good time to check each group's progress and to verify that each group has completed Steps 1-3 successfully.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 25

Lesson 5 - Oracle HTML DB Application Builder, Final Project Part 5

Lesson 5 - Oracle HTML DB Application Builder, Final Project Part 5

Lesson Preparation

Preread Part 5: Creating the input forms and report areas for the application’s ORDERS and ITEMS pages to enable use of the LOVs for inputting data.

What to Watch For Successful completion of Part 5 requires that students have completed Parts 1 through 4 accurately. The LOVs created in Part 2 are used on the ORDERS and ITEMS forms as pop-up boxes. If the LOVs are not in place, they cannot be used to complete Part 5. Students should redo any missing parts.

Connections None.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 26

What Will I Learn?

What Will I Learn?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 27

Why Learn It?

Why Learn It?

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 28

Tell Me / Show Me

Tell Me / Show Me

Tell Me / Show Me

Before beginning Part 5, verify that students have successfully completed Parts 1-4. Explain that in Part 5, the LOVs created earlier will be added to the input forms for ORDERS and ITEMS. This will enable the user to choose options from LOV pop-up boxes placed on each form.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 29

Try It / Solve It

Try It / Solve It

Try It / Solve It

Check each group's progress before going on with Part 5.

Copyright © Oracle, 2004. All rights reserved.

Database Programming - Section 14 Page 30