Date post: | 02-Dec-2014 |
Category: |
Documents |
Upload: | databaseguys |
View: | 1,115 times |
Download: | 1 times |
Copyright © 2009 Pearson Education Canada Inc.
Part #: Title
Copyright © 2009 Pearson Education Canada
Chapter 5
Databases and Content Management
Part 2: Using Information Technology
Copyright © 2009 Pearson Education Canada 5-2
This Could Happen to You
A manager selected Moveable Type application program for the blog
Needs database program to store blog Consultant suggested MySQL Network standardized on Oracle
may not be able to run Moveable Type will require revision of labor estimates
IT resists installing MySQL
Copyright © 2009 Pearson Education Canada 5-3
Learning Objectives
1. What is content?
2. How can content be organized?
3. What is the purpose of a database?
4. What does a database contain?
5. What is a DBMS, and what does it do?
6. What is a database application?
7. What is the difference between an enterprise and a personal DBMS?
Copyright © 2009 Pearson Education Canada 5-4
What is content?
Content is related to intellectual property a form of creative endeavour that can be
protected through a trademark, patent, copyright, industrial design, or integrated circuit topography
Varies by industry ( advertising, publishing) Organizations may store data, documents,
spreadsheets, presentations, web pages, text from blogs and discussion boards, graphics, video files, audio files, geographical info via Google Earth etc.
Copyright © 2009 Pearson Education Canada 5-5
integrated circuit topography
Copyright © 2009 Pearson Education Canada 5-6
How can content be organized?
Content management includes management of content data
database management systems (DBMS) presentation of content
content management system (CMS)
Content management challenge processing and storing the right content getting the right content to the right person in the
right format at the right time
Copyright © 2009 Pearson Education Canada 5-7
It is important to separate the management of content data from the presentation of content.
management of content data is handled by databases
presentation of content is handled by the company’s website ( by the employee- not a good idea – Web CMS )
Copyright © 2009 Pearson Education Canada 5-8
What is the purpose of a database?
Spreadsheet and database keep track of things
Spreadsheets Keep lists of single concept
Databases Keep lists that involve multiple themes
Copyright © 2009 Pearson Education Canada 5-9
A list of single item like student grades [Spreadsheet]
Copyright © 2009 Pearson Education Canada 5-10
List of multiple themes [Database]
Copyright © 2009 Pearson Education Canada 5-11
What does a database contain?
A database is a self-describing collection of integrated records
Hierarchy of data elements Byte is a character of data Bytes are grouped into columns/fields Columns grouped into rows/records Rows are grouped into tables/files
Copyright © 2009 Pearson Education Canada 5-12
Hierarchy of Data Elements
Copyright © 2009 Pearson Education Canada 5-13
Student Table (also called a file)
Copyright © 2009 Pearson Education Canada 5-14
Components of a Database
Database is a collection of tables plus relationships among the rows in those tables plus metadata ( data about data) describes the structure of the database
Copyright © 2009 Pearson Education Canada 5-15
Relationships Among Records
Values in one table may relate to rows in other table(s)
Keys Column(s) that identify unique row in table Each table has a key ( must be chosen based on the
concept of the field and NOT the existing populated table)
Foreign keys Keys in a different table than the one in which they reside
Relational database Databases using tables, keys, and foreign keys
Copyright © 2009 Pearson Education Canada 5-16
Example of Relationships among Rows
Copyright © 2009 Pearson Education Canada 5-17
Metadata
Databases are self-describing contains, within itself, a description of its contents
Metadata Data that describe data Makes databases more useful than spreadsheet
No one needs to guess, remember what is in DB Makes databases easier to use
Copyright © 2009 Pearson Education Canada 5-18
Example of Metadata
Copyright © 2009 Pearson Education Canada 5-19
What is a DBMS, and what does it do?
Database Management System (DBMS) Program that creates, process, and administers
database Usually licensed from vendors
Microsoft, Oracle, IBM, MySQL (open-source)
DBMS and database are two different things
Copyright © 2009 Pearson Education Canada 5-20
Components of Database Application System
Copyright © 2009 Pearson Education Canada 5-21
DBMS
DBMS used to create tables, relationships and other structures in the database
DBMS processes database Applications use DBMS to read, insert, modify, or
delete data Use Structured Query Language (SQL)
international standard for processing a database
Copyright © 2009 Pearson Education Canada 5-22
DBMS, continued
DBMS provides tools to assist in administration of database [DBA]
Can be used to set up security User account, password, permissions
Used to back up data Add structure to improve performance ( adding
index) Remove data that no longer needed
Copyright © 2009 Pearson Education Canada 5-23
Modifying a Database
Copyright © 2009 Pearson Education Canada 5-24
What is a database application?
Collection of forms, reports, queries, and application programs that process a database
Databases can have more then one application
Applications can have multiple users
Copyright © 2009 Pearson Education Canada 5-25
Multiple Database Application
Copyright © 2009 Pearson Education Canada 5-26
Forms, Reports, and Queries
Forms Used to read, insert, modify, and delete data
Reports Show data in structured context May compute values ( totals or average …)
Queries Means of getting answers from database data
Copyright © 2009 Pearson Education Canada 5-27
Example of a Form
Copyright © 2009 Pearson Education Canada 5-28
Example of a Report
Copyright © 2009 Pearson Education Canada 5-29
Example of a Query
Copyright © 2009 Pearson Education Canada 5-30
Database Application Programs
Forms, reports, and queries work for standard functions
Application programs Process logic specific to business need
E.g. order entry application, if there aren’t enough items in the inventory? Backorder?
Enables database processing over Internet serves as intermediary between Web server and
database responds to events such as pressing a submit button reads. inserts, modifies, deletes data
Copyright © 2009 Pearson Education Canada 5-31
Four Application Programs on a Web Browser Server Computer
Four Application Programs on a Web Server Computer
Copyright © 2009 Pearson Education Canada 5-32
Multi-User Processing
Multi-user processing is common Multi-user processing may cause data conflict
Unique problems Lost-update problem Locking used to coordinate activities of multiple
users creates new set of problems
Data conflicts produce inaccurate results
Copyright © 2009 Pearson Education Canada 5-33
Lost Update Problem
A successfully completed update operation by one user can be overridden A successfully completed update operation by one user can be overridden by another user. by another user.
Copyright © 2009 Pearson Education Canada 5-34
Lost Update Problem
Successfully completed update is overridden by another user.
T1 withdrawing $10 from an account with balx, initially $100.
T2 depositing $100 into same account.
Serially, final balance would be $190.
Loss of T2's update is avoided by preventing T1
from reading balx until after update (Lock)
Copyright © 2009 Pearson Education Canada 5-35
What is the difference between an enterprise and a personal DBMS?
Enterprise DBMS Process large organizational and workgroup
databases Support many (thousands) users
Examples: DB2, SQL Server, Oracle
Personal DBMS Designed for smaller, simpler database
applications Supports fewer than 100 users
Examples: Access, dBase, FoxPro, Paradox, R:Base
Copyright © 2009 Pearson Education Canada 5-36
Personal Database System
In Personal DBMS like MS Access, the DBMS and DB application are bundled in the same software system.
Copyright © 2009 Pearson Education Canada 5-37
How does the knowledge in this chapter help you?
Understand how the blog could be used to manage important content that was previously not available
Understand what a DBMS is and what role it plays
Realize why the IS department would be hesitant in being responsible for additional content and the presentation of that content
Realize that there is some risk in allowing content in the blog that is not edited
Better able to present system plan to IT department
Copyright © 2009 Pearson Education Canada 5-38
MIS in Use
The Many Names of One Customer Vancity is Canada’s largest credit union customers can have multiple products, and
multiple instances of individual products challenge was to ensure that the data in the
customer information file (CIF), the database that held all customer data, was accurate and identified customers uniquely and completely
problems with incomplete customer information or misidentification of financial records
Copyright © 2009 Pearson Education Canada 5-39
MIS in Use Questions
1. How serious a problem is this to the financial services industry? Is it more serious for some industries than others?
2. Are there any other costs to Vancity when duplicate information is sent to customers?
3. What are the various challenges in cleaning and grooming data?
4. Would the problem be solved by identifying customers numerically? How would customers perceive this? Are there legal issues?
Copyright © 2009 Pearson Education Canada 5-40
What do YOU think?
Nobody Said I Shouldn’t Kelly does systems support and database
backups He copied one of the database backups to a
CD, took it home, and query the data Because of that, he was fired Company also threatened that if he didn’t
return all of its data, he will be in court for the next five years
Copyright © 2009 Pearson Education Canada 5-41
What do YOU think?
1. Where did Kelly go wrong?2. Do you think it was illegal, unethical, or neither for
Kelly to take the database home and query the data?
3. Does the company share culpability with Kelly?4. What do you think Kelly should have done upon
discovering the odd pattern in Jason’s orders?5. What should the company have done before firing
Kelly?6. “Metadata make databases easy to use—for both
authorized and unauthorized purposes.” Explain what organizations should do in light of this fact.
Copyright © 2009 Pearson Education Canada 5-42
Videos
Content Management Systems Content Management Systems Google Doc
Copyright © 2009 Pearson Education Canada 5-43
How a search engine works!