CSIS 350 Lecture 2: Introduction to Databases and the Relational Model, Study notes of Database Management Systems (DBMS)

An introduction to databases and the relational model in csis 350. The lecture covers the definitions of databases and dbmss, the history and advantages of the relational model, and the differences between transaction processing and analysis databases. The document also introduces the key parts of a database system, including applications, dbms, database, and sql.

Typology: Study notes

Pre 2010

Uploaded on 08/05/2009

koofers-user-kjt
koofers-user-kjt 🇺🇸

10 documents

1 / 5

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CSIS 350 – Lecture 2
Last time
- We saw that we frequently use systems that include a database as a major component:
WebOpus, on-line retailers, cell phone directory, ATMs,…
- Looked at definitions of database
oSystem for storing data so that information can be derived from it.
oData = recorded facts and figures
oInformation = knowledge derived from data
- Looked at what a DBMS is
oSystem that creates, processes, and administers the database.
oCollection of components that supports creation, use, and maintenance of
databases.
- Looked at some data models used by DBMSs: hierarchical, network, relational
oThis class focuses on the relational model
Relational Model
Invented in 1969 by E.F. Codd at IBM
Not commercially developed until late 1970s
Most DBs today use relational model
Data is stored in relations, which appear to be tables
Each record in a relation is uniquely identified
Unlike hierarchical and network models, where the data is stored does not matter – there
are no physical links in the database.
Types of databases
Discuss types of databases: processing and analysis
- transaction processing (online transaction processing - OLTP)
ogrocery store inventory, bank account
odata must be updated in "real-time"
- analysis/decision support (OLAP – OL analytic processing)
oHuge databases and complex queries
History of all transactions from all grocery stores over last 10 years
What % of our customers who buy crackers also buy cheese?
oDon't need to update often, because it doesn't materially affect query results.
- data mining
oAnother type of analysis
oMuch more open-ended – "knowledge discovery"
Are there any interesting combinations of items that are bought by our
customers?
pf3
pf4
pf5

Partial preview of the text

Download CSIS 350 Lecture 2: Introduction to Databases and the Relational Model and more Study notes Database Management Systems (DBMS) in PDF only on Docsity!

CSIS 350 – Lecture 2

Last time

  • We saw that we frequently use systems that include a database as a major component: WebOpus, on-line retailers, cell phone directory, ATMs,…
  • Looked at definitions of database o System for storing data so that information can be derived from it. o Data = recorded facts and figures o Information = knowledge derived from data
  • Looked at what a DBMS is o System that creates, processes, and administers the database. o Collection of components that supports creation, use, and maintenance of databases.
  • Looked at some data models used by DBMSs: hierarchical, network, relational o This class focuses on the relational model Relational Model Invented in 1969 by E.F. Codd at IBM Not commercially developed until late 1970s Most DBs today use relational model Data is stored in relations , which appear to be tables Each record in a relation is uniquely identified Unlike hierarchical and network models, where the data is stored does not matter – there are no physical links in the database. Types of databases Discuss types of databases: processing and analysis
  • transaction processing (online transaction processing - OLTP) o grocery store inventory, bank account o data must be updated in "real-time"
  • analysis/decision support (OLAP – OL analytic processing) o Huge databases and complex queries  History of all transactions from all grocery stores over last 10 years  What % of our customers who buy crackers also buy cheese? o Don't need to update often, because it doesn't materially affect query results.
  • data mining o Another type of analysis o Much more open-ended – "knowledge discovery"  Are there any interesting combinations of items that are bought by our customers?

 What are the characteristics of loan customers who are likely to default? Key parts of database system Applications – the programs that users interact with DBMS – the system that creates, processes, and administers databases database – the stored data SQL (structured query language) – a standard language for interacting with DBMSs. SQL is understood by all the commercial DBMSs. Let's look at how these parts fit together (see PowerPoint slides) Slide 1) MS Access

  • Microsoft Access is a low-end product intended for individual users and small workgroups.
  • MS Access tries to hide much of the underlying database technology from the user.
  • MS Access if a DBMS plus an application generator : o DBMS creates, processes and administers MS Access databases o The application generator includes query, form and report components
  • A good strategy for beginners, but not for database professionals.
  • NOTE: MS Access is discussed in detail in Appendix A. Slide 2) Access in detail Slide 3) Enterprise DBMS
  • Shows users interacting with the database using a variety of applications Slide 4) User interaction
  • Discuss the various user roles
  • Show where the applications in slide 3 come from Slide 5) Ease of use vs. power Some terminology:
  • The purpose of a database is to help people track things of interest to them.
  • Data is stored in tables , which have rows and columns like a spreadsheet. A database may have multiple tables, where each table stores data about a different thing
  • Each row in a table stores data about an occurrence or instance of the thing of interest.
  • Each column in the table stores one characteristic/attribute about each instance
  • A database stores data and relationships. Slide 6) Tables Slide 7) Tables with relationships

Database size is not related to complexity – a small database is not necessarily simple (see page 7) In-Class Exercise Answer Review Questions 1.1 to 1.5, 1.18, 1.30, 1.31, 1.32, 1.34. Turn in a neat, hand-written document with your answers that clearly states all members of your team. Homework On course web site, due Tuesday. Read chapter 2, upto page 45.

Homework Before class on Thursday:

  • Read the web site
  • Read chapter 1 of the text.