Professional Documents
Culture Documents
DBMS Session 1 Notes
DBMS Session 1 Notes
Session 1 Agenda
Introductions
Syllabus Review/Team Assignments/Questions
Review of Week 1 Team Assignment
Review of the Oracle Database installation
Chapter 1: Introductory Database Concepts
Introductions
About Me
Name: Dr. William J. Buttigieg
Contact: wbuttigieg@pace.edu (Preferred contact method)
Phone: 646-220-4734 (Voicemail/Text)
Office: By Appointment Only
Introductions
Name
Major
Occupation
IT Background/Experience
Student Expectations
CS 623 – Database Management Systems
Syllabus Review
Textbook
Databases Illuminated, Third Edition, Hardcover, by Catherine M.
Ricardo and Susan D. Urban, Jones and Barlett Publishers, 2015,
(ISBN-13:9781284056945, ISBN-10:1284056945).
Required Software:
Microsoft Project, download from:
https://www.pace.edu/seidenberg/seidenberg-resources
Microsoft Visio, download from:
https://www.pace.edu/seidenberg/seidenberg-resources
Oracle Database Express Edition XE 18c, download from:
https://www.oracle.com/database/technologies/xe-downloads.html
CS 623 – Database Management Systems
Team Assignments
If you would like to form your own teams, kindly let me know within
24 hours; otherwise, I will randomly assign the teams.
Note: If you decide to withdraw from the class, kindly let me know so
I can inform your team members and/or make team adjustments.
Note: If there are any class roster changes during the withdraw
period, I will inform the team and update the team assignment
announcement in Pace Classes.
CS 623 – Database Management Systems
Team Charter
Be sure that when you submit your individual and team assignments,
you show your work so that I know that you completed each
exercise.
One way to do this is to take a screenshot of your output and paste
your screenshot into the appropriate section of the weekly instruction
doc(s) and submit the instruction doc(s) that contain all of your
screenshots.
Kindly save all assignments as a .doc or docx.
Do not compress files.
Do not submit a pdf files.
CS 623 – Database Management Systems
Assignments are due by the end of the week for the weeks specified
in this syllabus.
All assignments must be submitted through Pace Classes.
Please ensure that individual and team assignments are submitted
on time so weekly assignments do not conflict with each other and
you have enough time to complete each assignment.
Late assignments will be penalized with a five (5) point deduction for
each day late unless arrangements are made prior to the due date.
Any assignments submitted after last day of class will not be
accepted.
CS 623 – Database Management Systems
CS 623 – Database Management Systems
Step 1.1 - Write out the format of every input document that provides
information to be stored in the database.
Examples: member’s information, sales invoice, mailing list
Step 1.2 - Write out the format of every routine report to be produced
using the database.
Examples: customer report, inventory report, sales report
Step 1.3 - Describe or sketch the input and output screens for routine
transactions to be performed using the database.
Examples: making an appointment, product lookup, bill of sale.
CS 623 – Database Management Systems
Step 1.4 - Write out an initial list of assumptions for the project.
Examples: Determine whether:
Are donors unique?
Are play titles unique?
How many performances are there per day?
Can a student have more than one degree?
Can a donor be an alumni?
What does the address info consist of?
What do telephone numbers consist of?
What are the types of payments accepted?
Can an automobile be financed?
CS 623 – Database Management Systems
Note: We will review this in class and will provide instructions on Pace
Classes
CS 623 – Database Management Systems
Use the search bar to search for Project and Visio (separately).
If you need to enter the Product Key, you can click on View Key button
before downloading software.
To download the software, click on the Generate URL button to
generate the download URL.
Then click on the Copy to Clipboard button (to the right of the URL) to
copy the URL.
Then open a new Window tab and paste the URL into the address bar
to download the iso file.
Once the iso file has been downloaded, click on the iso file to open and
unzip the files.
Once the files have been unzipped, click on setup.exe to install the
software.
CS 623 – Database Management Systems
MacOS
Since Microsoft and Oracle does not run on MacOS, the easiest option
would be to run a Windows emulator on Mac such as Parallels
Desktop and then install your Microsoft/Oracle software inside your
virtual machine.
Oracle alternatives:
For Oracle, you could install Oracle VM VirtualBox on Mac and then
install Oracle Developer VM inside your virtual machine to get the
Oracle Database.
Another alternative for Oracle is to sign up for Oracle Database
Cloud service.
CS 623 – Database Management Systems
MacOS (Con’t)
Microsoft alternatives:
For Microsoft Visio, you can sign up for Visio Plan 1 subscription to
get the web version of Visio to view, create, and edit diagrams in the
Safari or Chrome browser on your Mac.
For Microsoft Project, you can sign up for Project Plan 1 subscription
to get the web version of Project.
Chapter 1: Introductory Database Concepts
1890s:
Punched cards – data was collected and stored on punched
cards. Used for US census data.
1940s:
Punched paper tape – Used to store both data and computer
programs.
1950s:
Magnetic tape – Used for input for early computers including first
commercially available computer: UNIVAC 1.
Note: punched cards, paper tape, magnetic tape are sequential access
devices.
Chapter 1: Introductory Database Concepts
1950s (late):
Magnetic disk storage became available which allowed direct
access (non-sequential) access of records possible.
1960s:
Hierarchical database model - Assumes data relationships are
hierarchical (upside down tree structure).
Supports One-to-Many relationships - Each parent can have many
children but a child can only have one parent.
IBM developed this DBMS on an IBM 360 and was called
Information Management System (IMS) written for the Apollo space
mission.
Chapter 1: Introductory Database Concepts
1960s (Con’t):
Network model - allows many-to-many relationships and
appears in the form of a network.
Charles Bachman developed this DBMS known as the Integrated
Database Store (IDS) at Honeywell. The system was
standardized by CODASYL.
1970s:
Relational model - the database relationships are treated in the
form of a table (columns and rows).
The data can be related to other data in the same table or other
tables which has to be correctly managed by joining one or more
tables. Developed by Edgar F. Codd.
Ex: Oracle, Microsoft SQL Server, IBM DB2, MySQL
Chapter 1: Introductory Database Concepts
1970s (Con’t):
Entity Relationship is an example of a semantic model, one that
attempts to capture the meaning of the data it represents.
Developed by Peter Chen in 1976. Mostly used during the design
phase for databases.
1980s:
Spreadsheet like (Lotus 1-2-3) and desktop databases like
dBase, FoxPro
Chapter 1: Introductory Database Concepts
1990s:
Object-oriented databases – These databases were designed to
handle the data required for advanced applications such as geographical
information systems, multimedia, computer-aided design and computer-
aided manufacturing (CAD/CAM), and other complex environments.
Object-oriented database examples: ObjectStore, Gemstone, Versant
Object Database, Objectivity/DB, and Caché
2000s:
Extensible Markup Language (XML) is a flexible way to create
information formats and electronically share structured data via the
Internet. XML databases provide a system for storing the data in
XML format.
Key-value - is useful for shopping cart data or storing user profiles. All
access to the database is done using a primary key. Ex: Riak, Berkeley
DB, and Aerospike
Database Fundamentals
Designing Databases
End Users are the people who use the data/database to perform
their jobs.
Naïve Users – access the database through the applications.
Casual (sophisticated) Users not only access the database through
the application but also have enough knowledge to use query
language to access the data.
Application Programmers are the people who write the
applications for the end users to use.
Database Administrator is the individual or group that is
responsible for designing, implementing, administrating, and
maintaining the database.
Chapter 1: Introductory Database Concepts
Database Terms
Data Types:
CHAR – Fixed length character string.
VARCHAR2 – Variable length character string.
NUMBER - Allows storing of an integer and integer/decimal.
DATE - stores the date and time information.
CLOB - stores storage of very large objects > 4 gigabytes.
BLOB - stores unstructured binary data. Ex: sound and video.
Chapter 1: Introductory Database Concepts
Foreign keys is the primary key of one table that is stored inside another
table. The foreign key connects the two tables together.
Ex: student table (StuID) and enroll table (StuID)
Enroll Table
Class Table
Chapter 1: Introductory Database Concepts
Relationship Types