|Schedule by week||Information to cover|
|Note that the audio and Smartboard presentations for each class are posted within a couple of days.|
Please check the weekly schedule multiple times a week, I sometimes add things during the course of the week. You need to pass in the code you write and the output that is produced unless you are told otherwise. Sometimes this involves showing data that was written to a file/table.
Play computer means to figure out the results yourself by evaluating the data rather than running the query.
Please keep copies of all work you submit until you receive your final grade at the end of the semester.
Comment on how I want the assignment: You should take the commands you do in SQL and the results and paste them into a word document. It should be similiar to the way I prepared the notes. You then send me the word document. I do not want you to show the screen itself - they are really hard to read!
|HELP schedule||Joe Fletcher is my SI. To contact Joe use email@example.com. He will be available for open labs Monday from 2 - 4:30, Tuesday from
10-12, Wednesday from 2-4:30, Thursday 10-12, Friday 11-2. Joe's meeting id is 7159615258 students just go to
Zoom Meeting and click join they will then be prompted for the meeting id.
My office hours are 1 on Monday, 10 on Tuesday, 10 on Wednesday, 1 on Thursday.. If it turns out other hours work better for students these may change, so check back.
I will send out the information to contact me on Zoom. I will post availability but you can also set something up with me.
Downloading WinSCP on your PC by SI Joe Fletcher
There is access to WiFi from your car under the solar canopies on the Fall River Campus.
Week of September 28th
INFORMATION:This week I am trying having you contact me to meet on Zoom during my office hours if you want to meet. You can also contact me to set up a different time to meet on Zoom. Just a suggestion, not a requirement.
This is Enrollment Verification week and I have to verify you are in the class. If you have not passed in work or the email a week verifying you are in the class, then you need to contact me now to make sure you are not withdrawn from the class.
NOTES/EXAMPLES TO LOOK AT:Using join
Join and where
More on subqueries
ACCOMPANYING POWERPOINT PRESENTATIONSZipped zersion of subqueries if you find a problem with version online.
Separate speaker notes for subqueries
More on Subqueries
Separate speaker notes for More on subqueries
TOPIC VIDEOS:Using join to link tables
Accompany notes on Subqueries
Explanation of subqueries described in previous notes on subqueries
Work in progress so check back!
Week of September 21st
INFORMATION:There is a lot of support and you should definitely use it if you have questions or encounter a problem. We are hear to help you succeed! Please take advantage of that. If you want to meet me in Zoom, I am available during my office hours or we can set up another time if that works better and you think it would be helpful. However, if you want to meet during my office hours you need to let me know so I will be there rather than just online.
To repeat: If you need help with something, now would be the time to ask your questions!
We are going to start looking at the design of a database and the theory of relational databases. Please read information about third normal form and relational databases. Please read the handout on definitions: Normalization definitions
NOTES/EXAMPLES TO LOOK AT:Please read the two examples - the first two postings under notes.
Introduction to multiple tables (relational) - joins
Relational database examples
Example of non-equijoin: nonequijoin example to accompany notes
Also view the slide presentation on normalization information about relational databases:
ACCOMPANYING POWERPOINT PRESENTATIONSNormalization - 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
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
TOPIC VIDEOS:Third Normal Form
Introduction to multiple tables (relational) - joins (accompanying notes)
Relational database examples (accompanying notes)
SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:Oracle quiz and relational databases (9/17/19) Accompanying audio
Oracle quiz and relational databases (9/17/19) See notes under Smartboard presentation
Relational databases and intro subqueries (9/19/19) Accompanying audio
Relational databases and intro subqueries (9/19/19) See notes under Smartboard presentation
ASSIGNMENTS TO DO:Oracle quiz I am interested in having you play computer - I do not want you to use the computer to get the results. You can check your results if you want to, but please do it on your own.
In problem #1 just to be clear, I want you to take a name that has been written with the slash separator in the format last/first m and flip it so it has first m last using Oracle functions. Specifically it can be done using substr and instr.
Database Quiz #1
Week of September 14th
INFORMATION:I will go to my Zoom area during office hours this week.
Please do not change any of the passwords we have given you. I need to be able to get to your site as does the IT staff if there is a problem.
NOTES/EXAMPLES TO LOOK AT:These are the notes that I will attempt to get through this week.
More on maintaining an SQL table
More SQL functions
Group SQL functions
ACCOMPANYING POWERPOINT PRESENTATIONSThese PowerPoint presentations were made to accompany the notes.
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
Separate speaker notes for group functions
TOPIC VIDEOS:Maintain Oracle
Character Functions in Oracle
Other kinds of Oracle Functions
Decode Function in Oracle
Group Functions in Oracle
SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:Where, maintenace, functions in SQL (9/10/19) Check accompanying audio
Where, maintain, functions in SQL (9/10/19) See notes under Smartboard presentation
Functions and groups (9/12/19) Check accompanying audio
Functions and groups (9/12/19) See notes under Smartboard presentation
ASSIGNMENTS TO DO:I am putting this up now because I wanted to give people time to sort out Oracle, but I can't wait any longer. I have not heard from some of you and I am getting concerned. Please contact Joe or myself if you are having trouble getting into Oracle or executing the SQL.
Here is a script to create the emp table:
Script to create emp table (createemp.sql)
You can enter edit createemp.sql or another name at the SQL prompt. It will go into the editor and ask if you want to create a new script. Enter yes and paste the script in and save it. Return to the prompt and enter @ createemp.sql and it should run and create the table for you.
If you are using putty, remember to have the script text in notepad and highlight it. When you go into the editor the right click will paste it or you can uses shift + ins to paste. You can then write and exit. Back at the SQL prompt is where you run it with the @.
Second SQL assignment
Quiz on where with two parts:
First part I want you to play computer and show me the output you think would be generated as opposed to running the query and letting Oracle give you the answer. We will do a lot of play computer with the goal of making sure you understand the logic and how Oracle handles it.
Second part Note that you need to show me the SQL and the results on all of the part 2 quiz questions.
Week of September 7th
INFORMATION:Welcome to CIS150 Oracle and SQL
I recommend one of the text books in the syllabus if you like having a textbook, but a textbook is not required. There is enough material on the web and in my notes that I decided to make the book a recommendation. These books or another book dealing with Oracle SQL (we are using version 19c this semester) can be helpful as a reference.
LOGIN INFORMATION:You can download Oracle, but that would not be my recommendation unless you are very experienced in complex downloads. Downloading Be very careful when you install, Oracle leaves a lot of footprints that makes reinstalling very difficult.
The first approach to running Oracle will involve using putty to access Oracle.
You should have received the login information you need for this course. If not, let me know.
Two sites that can be used to download PuTTY are:
Using Putty (copy and paste)
Basic steps to login to putty and get to Oracle:
1) Start putty and put in the hostname as cisweb.bristolcc.edu and the port as 220
2) At the login screen enter your username and your Linux password.
3) When you see that you are at cisweb, enter sqlplus19c.sh
4) You then connect to Oracle and need to enter your username and Oracle password
5) You should see the SQL prompt
Now you can create a table. Note that after you create tables, to see existing tables select table_name from user_tables.
NOTES/EXAMPLES TO LOOK AT:Accompanying step-by-step notes
First we will focus on getting into Oracle and then these are the notes that we will start to cover this week:
Introduction to SQL in Oracle
Create a table in SQL
Note that in many of the notes, the dates are quite old. SQL is SQL is SQL. Changes tend to be at the high end and not at the beginning. These notes were written after my first Oracle training, I have been back but have not seen the need to change the examples. When things are different, I will enter additional notes.
ACCOMPANYING POWERPOINT PRESENTATIONSIntroduction 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
Separate speaker notes for SQL Conditions
TOPIC VIDEOS:Video to accompany Introduction to SQL in Oracle
Video to accompany Create a table in SQL
Video of logging on using putty, establishing a table and testing it
Video to accompany SQL Conditions
SMARTBOARD AND AUDIO NOTES FROM Spring 2020 and Fall 2019:These are lectures from last Spring and the previous Fall that I recorded. The accompanying Smartboard presentations show what was on the Smartboard and the audio includes my explanation.
Intro to Oracle (9/3/19) Smartboard notes with accompanying audio
Intro to Oracle (9/3/19) See notes under Smartboard presentation to accompany this audio
Putty and more SQL (9/5/19) Smartboard notes with accompanying audio
Putty and more SQL (9/5/19) See notes under Smartboard presentation to accompany this audio
ASSIGNMENTS TO DO:NOTES: Note: You can use the commit command to make sure your work gets saved.
Copy from SQLPlus so you can paste it onto the document you are submitting as your assignent
All assignments must be turned in using the email addresses firstname.lastname@example.org with a cc to the email address I will send you. I like to have backup.
Your goal should be to get homework in on the Thursday after the week it was assigned.
I strongly urge you to do the COMMIT; after the table is created.
Oracle assignment on introductory material (html)
Oracle assignment on introductory material (doc)
Comment on how I want the assignment: You should take the commands you do in SQL and the results and paste them into a word document. It should be similiar to the way I prepared the notes. You then send me the word document. I do not want you to show the screen itself or pictures of the screen - they are really hard to read!