Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Database Processing
5-1
SPREADSHEET VS DATABASE PACKAGES
Spreadsheet Features:
5-2
3.Allow extensive user interaction with
applications and user control of
parameters for “what if” analysis.
4.Allows very flexible formatting and layout
of data for reporting.
5.Allows presentation of results in graphical
form.
6.Allows the rapid entry and use of small
amounts of data that do not need to be
maintained for repeated long term use.
5-3
Limitations of spreadsheets:
- handling of data which are not
particularly effective in handling
large amounts of data
- to produce many different reports
from selected portions of a common
set of data
5-4
Key Database Features
5-6
Working with her consultant, Dee selected
an application program called Movable
Type for her blog.
Than Don mentioned that she would need
to install MySQL.
“You need a DBMS to store your blog
entries,” he explained.
“A What?” asked Dee. “Oh right,” explained
5-7
So Dee asked the IT Department, but they
only had Oracle.
So Don insisted to install MySQL since it
5-8
Study Questions
Q1 What is the purpose of a database?
Q2 What is a database?
application system?
Q4 How do database applications make
databases more useful?
Q5 How are data models used for database
development?
Q6 How is a data model transformed into a
database design?
Q7 What is the user's role in the
development of databases?
Q8 What are the responsibilities for
n Spreadsheets are good for tracking items with just one theme (as
shown below) versus a database that tracks things involving
more than one theme (as shown on the next slide).
5-10
Q1 – What is the purpose of a database?
5-11
Q2 – What is a database?
5-12
Q2 – What is a database?
nThis
figure shows the hierarchy of data elements working from the
smallest at the bottom to the largest at the top.
5-13
Q2 – What is a database?
5-14
Q2 – What is a database?
nThis diagram shows
relationships among
rows of different
tables.
nThe Student Number
value in the first row
of the top
table,1325, relates
to the same Student
Number value in a
row in the second
table.
nBoth that Student
Number value and
that of 4867 in the
second table relate
to those in the third.
Fig 5-6 Example of Relationships Among Rows
5-15
Q2 – What is a database?
n A relational database
carries data in the
form of tables and
uses foreign keys
to represent relationships
5-16
Q2 – What is a database?
nMetadata are data that describe data and makes databases easy to
use. Metadata is always a part of a database.
nThe Field Name, Data Type, and Description at the top of this diagram
are part of the database’s metadata.
n
nThe additional
field properties
at the bottom
are also
considered
metadata.
5-17
Q3 – What are the components of a database application
system?
n By itself, a database is not very useful because there’s no way to
easily manage the data and turn it into useful information.
5-18
Q3 – What are the components of a database application
system?
5-19
Q3 – What are the components of a database application
system?
n A DBMS is used to create or modify tables, relationships, and other
structures in a database.
n This figure shows how the metadata in an existing table is modified
to add a new field labeled “Response?”
5-20
Q3 – What are the components of a database application
system?
5-21
Q4 – How do database applications make databases more
useful?
n A database application includes forms, reports, queries, and
applications programs available to one or more users.
n This figure shows three different applications stemming from a
single DBMS and a single database.
5-22
Q4 – How do database applications make databases more
useful?
n Data entry forms are used
to read, insert, modify,
and delete data.
5-23
Q4 – How do database applications make databases more
useful?
nA query form helps the user
quickly find answers to
questions. In this case, the
words “barriers to entry”
were found in Baker’s
record.
5-24
Q4 – How do database applications make databases more
useful?
n Database application programs process logic specific to a given
business need. For example, a program could track backordered
items and hold a customer order until the items are ready to ship.
n Application programs enable database processing over the Internet
as the figure below shows. Users access the applications
programs on a Web server, which in turn accesses a single
DBMS and database.
5-25
Q4 – How do database applications make databases more
useful?
5-26
Q4 – How do database applications make databases more
useful?
n Here’s a comparison of an Enterprise DBMS versus a Personal DBMS.
qEnterprise DBMS qPersonal DBMS
nLarge nSmaller, simpler
organizational applications
and workgroup nPersonal or small
databases workgroup
nThousands of applications
users nFewer than 100
nMany different users
database nMicrosoft Access
applications is both a DBMS
n24/7 operations and application
nDB2, SQL Server, development
Oracle product as this
figure depicts.
5-27
Q5 – How are data models used for database development?
5-28
Q5 – How are data models used for database development?
5-29
Q5 – How are data models used for database development?
5-30
Q5 – How are data models used for database development?
q One-to-many – 1:N
q Many-to-many –
N:M
5-31
Q5 – How are data models used for database development?
5-32
Q5 – How are data models used for database development?
5-33
Q5 – How are data models used for database development?
5-34
Q6 How is a data model transformed into a database design?
problems because
the DeptName is not
consistent throughout
the table after the
data were updated.
5-35
Q6 How is a data model transformed into a database design?
5-36
Q6 How is a data model transformed into a database design?
5-37
Q6 How is a data model transformed into a database design?
nThe figures below and on the next slide depict the steps used to
create a well structured database that will produce useful
information.
nThe figure on the left represents the relationship between tables. The
figure on the right shows a normalized table for each entity.
5-38
Q6 How is a data model transformed into a database design?
5-39
Q7 – What is the user's role in the development of databases?
n Each entity must contain all the data you need to do your job.
n You must be the final judge of how well the database will serve your
needs. Do not go forward until the data model is accurate.
5-40
Q8 – What are the responsibilities for database
administration?
5-41
Q8 – What are the responsibilities for database
administration?
5-42
Q8 – What are the responsibilities for database
administration?
5-43
Samantha Green owns and operates Twigs Tree Trimming
Service. Recall that Samantha has a degree from a
forestry program and recently opened her business in St.
Louis, Missouri. Her business consists of many one-time
operations (e.g., remove a tree or stump), as well as
recurring services (e.g., trimming customers’ trees every
year or two). When business is slow, Samantha calls
former clients to remind them of her services and of the
need to trim their trees on a regular basis.
a. Name and describe tables of data that Samantha
will need to run her business. Indicate possible fields for
each table.
n
5-44
b. Could Samantha use a spreadsheet to keep track of this
data? What would be the advantage and disadvantages
of doing so?
c. Using your answer to question a, give an example of two
5-45
FiredUp, Inc is a small business owned by Curt and Julie Robards.
Based in Brisbane, Australia, FiredUp manufactures and sells
FiredUp, a light-weight camping stove. Recall that Curt used his
previous experience as an aerospace engineer to invent a burning
nozzle that enables the stove to stay lit in very high winds. Using her
industrial design training, Julie designed the stove so that it is small,
lightweight, easy to set up, and very stable. Curt and Julie sell the
stove directly to their customers over the Internet and via phone.
The warranty on the stove covers 5 years of cost-free repair for
stoves used for recreational purposes.
FiredUp wants to track every stove and the customer who purchased
it. They want to know which customers own which stoves in case
they need notify customers of safety problems or need to order a
stove recall. Curt and Julie also want to keep track of any repairs
they have performed
5-46
a. Name and describe tables of data that FiredUp will need. Indicate
possible fields for each table.
b. Could FiredUp use a spreadsheet to keep track of this data? What
would be the advantages and disadvantages of doing so?
c. Using your answer to question a, give an example of two
relationships that FiredUp needs to track. Show the keys and
foreign keys for each.
d. Which of the following components of a database application is
FiredUp likely to need: data entry forms, reports, queries, or
application program? Explain one use for each needed
component.
e. Will this application be for one user or for multiple users? Will
FiredUp need a personal DBMS, which product will it use? If an
enterprise DBMS, which product cant they obtain licence-free?
5-47