Tài liệu Instructor notes pptx

14 351 0
Tài liệu Instructor notes pptx

Đang tải... (xem toàn văn)

Tài liệu hạn chế xem trước, để xem đầy đủ mời bạn chọn Tải xuống

Thông tin tài liệu

Instructor Notes Introduction to Oracle: SQL and PL/SQL Using Procedure Builder2 Instructor Notes 3 Release Notes This release of the course notes guarantees compatibility with Oracle7 Server, Release 7.3.2.1.0, PL/SQL Release 2.3.2.0.0, SQL*Plus Release 3.3.2.0.0, and Oracle Procedure Builder, Release 1.5.5.7.0. All demonstration and practice files have been tested against this release of the product. General Notes If you have not taught Introduction to Oracle from Worldwide Education format notes, please observe the following changes: Format These course notes have been formatted to the Worldwide Education format. D The left hand page contains a copy of the presentation slides, which allow the presenter to concisely and clearly convey the topics. D Demonstrations are listed in the class management note below the slide or on the facing page. D The right hand page contains text that elaborates the bullet points on the slides. D The practice at the end of the lesson can contain paper-based or hands-on exercises. Online Presentation An online presentation created in Microsoft PowerPoint accompanies the course notes. Some of the slides use a feature called “build” that reveals each bullet following a mouse-click. Each of these is documented in the course management notes. Instructions for using the PowerPoint Slide Show are provided. Oracle Procedure Builder Oracle Procedure Builder is the interface for creating, editing, debugging, and executing the PL/SQL code. Instructors should be familiar with the tool and its features. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder4 Course Timings The suggested course timings in minutes are a guideline. SQL and SQL*Plus Lessons to Cover Day 1 Introduction through Lesson 4 Day 2 Lesson 5 through Lesson 10 Day 3 Lesson 11 through Lesson 16 PL/SQL Day 4 Lesson 18 through Lesson 22 Day 5 Lesson 23 through Lesson 25 Lesson Lecture Practice Total Day 1 Introduction 45 0 45 Lesson 1: Selecting Rows 40 25 65 Lesson 2: Limiting Selected Rows 35 30 65 Lesson 3: Single Row Functions 55 40 95 Lesson 4: Display Data from Multiple Tables 40 50 90 Day 2 Lesson 5: Group Functions 35 40 75 Lesson 6: Subqueries 45 35 80 Lesson 7: Specifying Variables at Runtime 35 25 60 Lesson 8: Overview of Data Models and Database Design 40 0 40 Lesson 9: Creating Tables 45 25 70 Lesson 10: Oracle Data Dictionary 20 15 35 Instructor Notes 5 Course Timings continued Lesson Lecture Practice Total Day 3 Lesson 11: Manipulating Data 45 40 85 Lesson 12: Altering Tables and Constraints 30 40 70 Lesson 13: Creating Sequences 20 25 45 Lesson 14: Creating Views 35 30 65 Lesson 15: Creating Indexes 25 25 50 Lesson 16: Controlling User Access 25 20 45 Lesson 17: Summary of SQL and SQL*Plus (optional) 15 100 150 Day 4 Lesson 18: Overview of PL/SQL 20 0 20 Lesson 19: Basics of Procedure Builder 60 15 75 Lesson 20: Modularizing Programming with Subprograms 60 20 80 Lesson 21: Developing a Simple PL/SQL Block 60 30 90 Lesson 22: Interacting with Oracle 40 45 85 Day 5 Lesson 23: Controlling Flow in PL/SQL Blocks 40 60 100 Lesson 24: Processing Queries by Using Explicit Cursors 60 50 110 Lesson 25: Error Handling 30 30 60 Lesson 26: Summary of PL/SQL (optional) 15 200 215 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder6 Description of Demonstration Files Guidelines for Using Demonstration Files Numerous demonstration files are included with this course. They are there for you to use optionally. However, some of these examples build within a lesson. Each demonstration is marked with a Course Management Note, including the keyword DEMO and a filename, as appropriate. Use the PURPOSE section of this note to alert students as to what you expect them to observe. Next, you see instructions to perform the demonstration. Listed below are the demonstration files used in each lesson. Many topics do not have demonstration files due to you demonstrating a process rather than showing a completed set of code. In these cases, class management notes provide you with guidelines for your demonstration. Lesson File Usage Lesson 1: Selecting Rows l1prec1.sql Viewing a query containing no parentheses l1prec2.sql Executing a query with parentheses to override rules of precedence l1alias.sql Using aliases in expressions l1null1.sql Calculating with nulls l1col.sql Simple SELECT statement Lesson 2: Limiting l2betw.sql Using the BETWEEN operator Selected Rows l2in.sql Using the IN operator l2and.sql Using the AND operator l2or.sql Comparing results from OR and AND operators l2sal1.sql Rules of precedence l2sal2.sql Rules of precedence Lesson 3: Single Row Functions l3hire.sql Time portion of the stored date, case sensitivity, fill mode, embedding text (“of”) Instructor Notes 7 Description of Demonstration Files continued Lesson File Usage Lesson 4: Display Data l4cart.sql Executing a Cartesian Product from Multiple Tables l4region.sql Displaying aSELECT clause with no aliases l4ejoin.sql Displaying a equijoin leading to outer join example l4ojoin.sql Displaying an outer join Lesson 5: Group l5count1.sql Using the COUNT(*) function Functions l5count2.sql Using the COUNT(expr) function l5error.sql Executing a SELECT command with no GROUP BY clause l5order1.sql Ordering columns that are grouped by DEPT_ID first l5order2.sql Ordering columns that are grouped by TITLE first l5title1.sql Using a WHERE clause to restrict rows by TITLE l5title2.sql Using a HAVING clause to restrict groups by SUM(salary) Lesson 6: Subqueries No demonstration files. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder8 Description of Demonstration Files continued Lesson File Usage Lesson 7: Specifying l7varno.sql Returning all rows Variables at Runtime l7varyes.sql Using a case-insensitive query with substitution variables l7expr.sql Changing the column names and conditions by using substitution variables. l7dbl.sql Using a double ampersand substitution variable l7dlb2.sql Using a double ampersand substitution variable again l7prompt.sql Using the ACCEPT and PROMPT commands l7param.sql Using the parameter in the command line Lesson 8: Overview of Data Models and Database Design No demonstration files. Lesson 9: Creating Tables No demonstration files. Lesson 10: Oracle Data Dictionary l10tab.sql, Displaying all tables owned by the user l10obj2.sql Displaying all objects owned by the user based on a supplied value l10cons.sql Viewing constraints on the S_EMP table Lesson 11: Manipulating l11sel.sql Displaying initial state of the data Data l11upd.sql Performing the updates and viewing the results Lesson 12: Altering Tables and Constraints No demonstration files. Instructor Notes 9 Description of Demonstration Files continued Lesson File Usage Lesson 13: Creating Sequences l13dd.sql Displaying USER_SEQUENCES data dictionary structure and contents Lesson 14: Creating Views l14emp.sql Creating a view by using aliases l14vu1.sql Creating a view with CHECK OPTION l14vu2.sql Creating a view without CHECK OPTION Lesson 15: Creating Indexes No demonstration files. Lesson 16: Controlling User Access No demonstration files. Lesson 17: Summary of SQL and SQL*Plus No demonstration files. Lesson 19: Basics of Procedure Builder l19loop.pls Setting a breakpoint. Lesson 20: Modularizing Programming with l20proc.pls Loading and compiling code from a text file. Subprograms l20func.pls Importing text from a text file. Lesson 21: Developing a Simple PL/SQL Block No demonstration files. Lesson 22: Interacting with Oracle l22cust.pls Embedding INSERT commands in a procedure. l22newsd.pls Using parameters in a procedure to update a value in the table. l22delr.pls Indicating the number of rows affected by using the SQL cursor attributes. Introduction to Oracle: SQL and PL/SQL Using Procedure Builder10 Description of Demonstration Files continued Lesson File Usage Lesson 23: Controlling Flow in PL/SQL Blocks l23calc.pls Returning a calculated value based on an input value in a function. l23iter.pls Executing a loop. Referencing an index value is only allowed within the loop. Lesson 24: Processing Queries by Using Explicit Cursors l24up.pls Defining a cursor containing a FOR UPDATE clause, declaring a record based on a cursor, implementing an explicit cursor attribute. Lesson 25: Error Handling No demonstration files. Lesson 26: Course Summary No demonstration files. Appendix C: Using lcplus.sql Various SQL*Plus SET commands SQL*Plus to create Reports and Manage lcrpt0.sql SELECT statement used in the report PL/SQL code lcrpt1.sql SELECT statement and some SQL*Plus commands used in the report lcsal.sql Storing code in a text file, creating the file, executing the file, and interpreting the compilation errors. [...]... procedure syntax Lesson 22: Interacting with Oracle Lesson 23: Controlling Flow in PL/SQL Blocks Lesson 24: Processing Queries by Using Explicit Cursors Lesson 25: Error Handling p25q1.pls p25q2.pls Instructor Notes UPDATE_DEPT2 procedure syntax SALARY_RANGE procedure syntax 11 Practice Session Solution Files continued Lesson File Description Lesson 26: Course Summary p26q1a.pls NEW_MEMBER function syntax... slide [Home] Go to last slide [End] Go to hidden slide/skip build to next slide [H] End show [Esc], Ctrl+[Break], [–](minus) Black/unblack screen B, [.] (period) White/unwhite screen W, [,] (comma) Instructor Notes 13 14 Introduction to Oracle: SQL and PL/SQL Using Procedure Builder . Instructor Notes Introduction to Oracle: SQL and PL/SQL Using Procedure Builder2 Instructor Notes 3 Release Notes This release of the course notes. General Notes If you have not taught Introduction to Oracle from Worldwide Education format notes, please observe the following changes: Format These course notes

Ngày đăng: 10/12/2013, 16:16

Từ khóa liên quan

Tài liệu cùng người dùng

Tài liệu liên quan