Oracle and SQL (CIS50)

Weekly Schedule

Schedule by weekInformation to cover
PowerPoint Presentations: Free PowerPoint viewer for 97,2000,2002 users
Note that the speaker notes are provided on a separate Word document for many of the presentations if you are having trouble accessing them! Please check the weekly schedule multiple times a week, I sometimes add things during the course of the week. Please keep copies of all work you submit until you receive your final grade at the end of the semester.
Week #14
Week of April 28th
Catch up week! Time to finish the overload on last week!
Week #13
Week of April 21st
We will continue functions and procedures and introduce triggers next week. Please read the notes and look at the PowerPoint presentations. We will spend the next couple of weeks on these topics.
Internal procedures
More on internal procedures and functions
Still more on procedures and functions
Introduction to triggers
More on triggers
More on Procedures - Internal Procedures
      Separate speaker notes for More on Procedures - Internal Procedures
Introduction to Triggers
      Separate speaker notes for Introduction to Triggers
More and Still More on Procedures and Functions
      Separate speaker notes for More and Still More on Procedures and Functions
More on Triggers
      Separate speaker notes for More on Triggers
A site to check out: Tutorials
Assignments:
I am going to list the assignments for the rest of the semester so you can work on your own schedule.
Assignment: You can do this assignment by modifying existing programs or creating new ones. Use the three kinds of exceptions in a PL/SQL program or programs(s).
Extra credit project
If you have had a pattern of lateness, if you have received some bad grades, if you are nervous about doing well on the final or just if you want to learn more about Oracle, the extra credit project is for you!
Function, procedure and trigger assignment
Last quiz we will have time for you to do this next week
Week #12
Week of April 14th
I am available at 11 on Tuesday and Thursday in K101 and on Tuesday from 2:00ish until 4:00 and then from 5:30 ish until 7:00ish (I am on a committee that is doing interviews and an interview has been scheduled for 4:00. You can look for me in my office or in the lab across the hall. This is also advisement week, so some of the time may be taken up by advisement rather than help!
First, we will finish the cursor examples from last week. Then, we will move to exceptions and start looking at procedures and functions. We will continue working on the examples below next week if we need more time.
Introduction to exceptions
Introduction to procedures
Introduction to functions
Exceptions in PL/SQL
      Separate speaker notes for Exceptions in PL/SQL
Introduction to PL/SQL Procedures
      Separate speaker notes for Introduction to PL/SQL Procedures
Introduction to PL/SQL Functions
      Separate speaker notes for Introduction to PL/SQL Functions
Assignments:
Multiple cursor assignment
Week #11
Week of April 6th
We will focus on cursors this week (actually we started them last week). Be sure to look at the handouts on cursors. Please note that there are Smartboard explanations on cursor examples and PowerPoint presentations.
Please read the following notes and watch the slide presentation.
Example 1 using cursors
Continuing example 1 using cursors
Another set of cursor examples
Covers: Cursors in PL/SQL, cursor example and continuation of first cursor example
      Separate speaker notes for Cursors in PL/SQL, cursor example and continuation of first cursor example
Covers: Another set of cursor exampes
      Separate speaker notes for Another set of cursor examples
Check back!
Assignments:
Loop and cursor assignment
Week #10
Week of March 31st
I am available at 11 on Tuesday and Thursday in K101 and on Tuesday from 2:30ish until 6:30ish - you can look for me in my office or in the lab across the hall.
As I said, I do not like the introduction to PL/SQL that I followed which is why I will look briefly at the introduction and then will go to the IF statements. I will return to the intro and the more examples this week. We will start also looking at loops:
Introduction to loops
Data manipulation in PL/SQL - introduction
I actually skipped Records and Tables, and started to look at cursors. I will cover Records and tables next week along with more on cursors. I did the introduction to cursors except for the last example which I will return to next week after I do Record and table types.
Introduction to cursors Note that there is also a PowerPoint presentation listed under next week or under presentations.
Record and table types
Introduction to loops
      Separate speaker notes for Introduction to loops
Then we will go back and look at the introductory material in PL/SQL. I feel more confident that it will make sense after you have looked at if and loops.
Data manipulation in PL/SQL - introduction
      Separate speaker notes on Data manipulation in PL/SQL - introduction
PL/SQL User Defined Types - record and table
      Separate speaker notes for PL/SQL User Defined Types - record and table
Assignments:
IF and LOOP assignment
Week #9 Assignments
Week of March 24th
Keep reading about SQL - I suggest you take a look at the security chapter.
Look at these notes and presentation.
Information on database objects
Script for input data
Database Objects in Oracle
      Separate speaker notes for Database Objects in Oracle
We will start looking at PL/SQL and then come back and tie up some loose ends at the end of the semester.
Start reading the introductory handout on PL/SQL and look at the PowerPoint presentation!
I do not like the introduction to PL/SQL that I followed which is why I will look briefly at the introduction and then will go to the IF statements. I will return to the intro and the more examples this week. Be I would also be sure to read the book and check out the Smartboard/audio.
Introduction to PL/SQL Only look at the structure on the first page - we will come back to this later
You should also get started on the following:
Introduction to IF statements
More on PL/SQL IF statements
Also please look at the accompany presentations:
PL/SQL - Using IF statements
      Separate speaker notes for PL/SQL - Using IF statements
More on PL/SQL IF statements
      Separate speaker notes for More on PL/SQL IF statements
Check back and see how we are doing!
Assignments:
First PL/SQL Quiz
Week #8 Assignments
Week of march 10th
Finishing up the discussion on scripts, please read: Script for input data
Read the information on indexes, keys etc. We will start them this week.
Please read the following (again this will hopefully be started this week and will be completed next week):
Indexes in Oracle - An introduction
More on Primary and Foreign keys
Notes on key questions
More on views
Be sure you read about indexes, keys etc in your text as well. Also please look at the accompanying presentations:
Indexes in Oracle - An Introduction
      Separate speaker notes for Indexes in Oracle - An Introduction
Primary and Foreign constraints with a relational database
      Separate speaker notes to accompany primary and foreign constraints with a relational database
More on Primary and Foreign Keys also info from questions
      Separate speaker notes for More on Primary and Foreign Keys etc.
More on views
      Separate speaker notes for More on views
Assignments:
Oracle keys assignment
Week #7 Assignments
Week of March 3rd
Read the information on views and reports.
Introduction to views
Introduction to reports
You should also look at the accompanying presentations:
Introduction to views
      Separate speaker notes for Introduction to views
Introduction to Reports
      Separate speaker notes for Introduction to reports
Between being sick and being away, I am behind in homework. Hopefully I will get caught up soon. Sorry!
Assignments:
Views and reports
Week #6 Assignments
Week of February 25th
We will start off by finishing subroutines. We will then start looking at the following topics:
Using input variables
More on variables with Oracle's SQL*Plus
Table maintenance revisited (again)
Continuation of table maintenance revisited (again)
Using Input Variables
      Separate speaker notes for Using Input Variables
More on variables with Oracle's SQL*Plus
      Separate speaker notes for More on variables with Oracle's SQL*Plus
Table maintenance revisited (again)
      Separate speaker notes for Table maintenance revisted (again)
Continuation of table maintenance revisited (again)
      Separate speaker notes for Continuation of table maintenance revisted (again)
Assignments:
Assignment (mostly on subqueries) At school, I believe you can access the emp, dept, and salgrade tables by using the scott/tiger login. Please use the create table ... as to make a copy with your name. Please do not change or modify the emp table under scott.
Week #5 Assignments
Week of February 18th
I am at least partially recovered from my email and then computer disaster. If you have not heard back from me by tomorrow night, I would resend anything I have not returned.
This week I will be in the lab in k101 on Thursday at 11 and in my office after my 3:00 class. I will also be around some on Friday if you contact me.
Keep reading along in the book - picking appropriate chapters to read or using it as a reference - you should make sure you have read the information on all of the topics we cover. If you read about a chapter a week you will be in good shape.
Please read the notes and handouts on Oracle Joins. I started dealing with subroutines. Please read the following information about subroutines:
Subqueries
More on subqueries
You should also look at the presentation on these topics especially the one that accompanies More on subqueries.
Subqueries
      Separate speaker notes for subqueries
More on Subqueries
      Separate speaker notes for More on subqueries
This is an example that you might find helpful:
Examples Solution
Assignments:
Quiz #3
If you have not done so, please go to the blog and introduce yourself and enter any success or questions about installing Oracle at home. Also you will find a posting about renaming columns.
At school, I believe you can access the emp, dept, and salgrade tables by using the scott/tiger login. Please use the create table ... as to make a copy with your name. Please do not change or modify the emp table under scott.
        SQL> create table testdonor as
          2  select * from donor;
        Table created.
        
Week #4
Week of February 11th
I am experiencing problems with my email account starting 2/11/08. Please send email to my backup account and try resending to my main account in a few days.
I will be in lab in K-101 for 11:00 on Tuesday, 11:00 on Thursday. I will also be available in my office (K-112) for help (we can go to a lab) on Tuesday from 3:30 to 6:30 (I maybe free from 2 - 3:30 on Tuesday, but I am not sure yet. I will be available in my office on Thursday from 3:00 to 4:00. Check with me!
Please read the following information about relational databases in Oracle.
Introduction to multiple tables (relational) - joins
Relational database examples
Look at the relational examples in these presentations:
Relational database notes and examples Goes with notes Introduction to multiple tables (relational) - joins - uses donor, donations and drive tables
      Separate speaker notes for relational database presentation
Normalization - information on third normal form
      Separate speaker notes for normalization presentation
Relational database examples - order system
      Separate speaker notes for relational database examples - order system
Student system relational database example
      Separate speaker notes for student system relational database example
Be sure you read about using JOIN in your textbook and also look at the handout: Oracle Join
Check back - I may add something to this list.Assignments:
Quiz #2
Implement your oil design (the one you did during the first week of classes Note that you should have the designed approved by me before you implement. I am looking for a very basic structure. If I agreed with and graded your design, then I approved it!
Students should layout a design and send it in for check off only
I suggest you look at the Smartboard notes from when I went over this last fall.
Week #3
Week of February 4th
I have asked for the lab in K-101 for 11:00 on Tuesday, 11:00 on Thursday and some other days as well. I am waiting for confirmation. Let's assume I will have it at the 11:00 times. I will also be available in my office (K-112) for help (we can go to a lab) on Tuesday from 3:30 to 6:30 (I maybe free from 2 - 3:30 on Tuesday, but I am not sure yet. Check with me!
I want you to use the text as reference and to read along in it one or two chapters a week - I go through the course in the order that it was given at Oracle so I may not be totally in sync with the book. Last week and the beginning of this week we covered what is in chapter #2 and #3. We are then moving into chapter #5 and #6 as we talk about functions. The following week we will do chapter #4 which is joining tables.
If you want a password for our lab, please let me know.
These are the notes for this week.
More on maintaining an SQL table
SQL functions
More SQL functions
Group SQL functions
You should also look at the accompanying PowerPoint presentations:
More on maintaining an SQL table
      Separate speaker notes for More on maintaining an SQL table
SQL functions - part 1 character
      Separate speaker notes for SQL functions - part 1 characters
SQL functions - part 2 numeric & date
      Separate speaker notes for SQL functions - part 2 numeric & date
More SQL functions (includes DECODE, ways to edit SQL code and nested functions)
      Separate speaker notes for more SQL functions
Group functions
      Separate speaker notes for group functions
We started looking at relational databases - the notes and presentations will be listed under next week, but they are the next thing in the list of notes.
Assignments:
Oracle create, maintain and query assignment
Oracle quiz
Week #2
Week of January 28th
Read chapter #2 in the text. Note that I work more off the notes so sometimes I am not totally in sync with the text. Please use the text also for reference. Look up things that I am covering that have not yet appeared in the text. I really leave reading the text up to you - your responsibility.
Read the notes and study the presentations for: Introduction to SQL in Oracle, Create a table in SQL, SQL Conditions and start reading Working with SQL.
Many of the notes and presentations were done with an earlier version of Oracle. It does not matter when you are working from the SQL prompt. When it does matter, I will point out the differences. Notes:
There is an audio section on the class activities that can be listened to with the Smartboard notes that will follow what I did last semester.
Introduction to SQL in Oracle
Create a table in SQL
SQL Conditions
Working with SQL
Presentations:
Introduction to SQL in Oracle
      Separate speaker notes for Introduction to SQL in Oracle
Create a table in SQL
      Separate speaker notes for Create a table in SQL
SQL Conditions
      Separate speaker notes for SQL Conditions
Working with SQL
      Separate speaker notes for Working with SQL
Note the first few slides in Working with SQL show login procedures using scott and tiger.
If you want an Oracle password for BCC please let me know.
Check back - we may look at more on maintaining an SQL table. We did look at maintenance and infact started looking at functions. Next week we will slow down a little.
The blog has information posted last semester. Check it out!
Assignment:
Oracle assignment on introductory material
Working with Oracle (this is something to look at on your own, not to pass in)
Week #1
Week of January 21st
Read chapter #1 in the text.
You should take this time to get a copy of Oracle if you are working on a computer outside the labs. You can use 7.3, 8, 8i, 9i or 10g. Please do not use Oracle 10g Express or any other express version. You can download from Oracle. See information under Using Oracle. Downloading
You will be given a password for using Oracle at BCC - hopefully next week.
To give you some time to get a copy of Oracle installed and to get your password, we are going to deal with the theory of relational databases this week. If you are without access to Oracle, please let me know what your problem is so we can try to get you up and running!
Be very careful when you install, Oracle leaves a lot of footprints that makes reinstalling ver difficult.
Please read information about third normal form and relational databases. I have put a variety of links to sources on the Web on the site under links and links to my site are listed below. Apparently it takes a few days for Oracle to email back the registration key so it would pay to get the process started soon.
Please read the handout on definitions: Normalization definitions
Please read the two examples - the first two postings under notes.
Also view the slide presentation on normalization information about relational databases:
Normalization - information on third normal form
      Separate speaker notes for normalization presentation
Relational database information - information on 1 to 1, 1 to M, and M to M
      Separate speaker notes for relational database information
Other examples can be found at my web site under Notes and handouts - Normalization and Relational Database (scroll down to the bottom of the notes and handouts screen to find them).
Assignment:
Set up relational database for an oil company (very basic) Note this should be a design only - it should not be done using Oracle
Note: Please note that I have put up additional notes that might help with this assignment - they are under Notes and Handouts - Normalization and Relational Database and Misc (scroll to the bottom of Notes and Handouts).
You should check back to make sure there have been no additions!


Google
WWW www.pgrocer.net

Send e-mail to Mrs. Grocer:
pgrocer@bristol.mass.edu

Back to the Top
Return to home page