* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Download ch08
Microsoft Access wikipedia , lookup
Microsoft SQL Server wikipedia , lookup
Entity–attribute–value model wikipedia , lookup
Oracle Database wikipedia , lookup
Extensible Storage Engine wikipedia , lookup
Ingres (database) wikipedia , lookup
Open Database Connectivity wikipedia , lookup
Microsoft Jet Database Engine wikipedia , lookup
Concurrency control wikipedia , lookup
Relational model wikipedia , lookup
Clusterpoint wikipedia , lookup
8 Chapter 8 Data and Knowledge Management Management Information Systems, Second Edition Effy Oz Learning Objectives  When you finish this chapter, you will 8  Know the difference between traditional file organization methods and the database approach.  Know how database management systems are used to construct databases, populate them with data, and manipulate the data to produce information.  Be familiar with the different database models and the advantages and disadvantages of each model. 2 Learning Objectives  Know the most important features and operations of a relational database. 8  Understand how databases are changing business operations across industries and what impact they might have on our personal lives.  Understand the concepts of data warehousing and data-mining and their use in business.  Recognize the need for knowledge storage and management and be able to give examples of the ways knowledge is managed in organizations. 3 Managing Digital Data  The Traditional File Approach  Disadvantages 8  Program/Data Dependency  Data Redundancy  Data Integrity  Moving to Databases  Database Management System (DBMS)  Queries: Request data from specified fields  Security: Giving users different views addresses security issue 4 Managing Digital Data 8 Figure 8.1 The layout of a personnel file in traditional file organization. 5 Managing Digital Data 8 Figure 8.2 Different information making up a student record retained in three different sites. 6 Managing Digital Data 8 Figure 8.3 Data hierarchy 7 Managing Digital Data 8 Figure 8.4 Different database views reveal different combinations of data 8 Managing Digital Data 8 Figure 8.5 Different views of one employee database 9 Managing Digital Data  Traditional Files vs. Databases: Pros and Cons 8  Traditional File Advantages  Simplicity  Efficiency  Customization  Database Advantages     Reduced data redundancy Application/data independence Better control Flexibility 10 Database Models 8 Figure 8.6 Advantages and disadvantages of database models 11 Database Models  The Hierarchical Model 8  Records are related hierarchically -- each category is a subcategory of the next level up  Disadvantages of hierarchical databases  To retrieve a record, a user must start at the root and navigate the hierarchy.  If a link is broken, the entire branch is lost.  Requires considerable data redundancy because child records can have only one parent 12 Database Models 8 Figure 8.7 A schematic diagram of a hierarchical database (a) and a sample part of a hierarchical database showing relationships among different records (b) 13 Database Models  The Network Model 8  Allows a record to be linked to more than one parent  Supports many-to-many (N:M) relationships  Advantage of the network model  Reduced data redundancy  Disadvantages of the network model  Complicated to build and difficult to maintain  Difficult to navigate 14 Database Models 8 Figure 8.8 A schematic diagram of a network database (a) and a sample of part of a network database showing relationships among different records (b) 15 Database Models  The Relational Model 8  Consists of tables; links among entities are maintained with foreign keys  Advantages of relational databases  Same advantages of a network database without the complications.  Easier to conceptualize and maintain.  Virtually all DBMSs offered for microcomputers accommodate the relational model. 16 Database Models 8 Figure 8.9 A schematic diagram of a relational database (a) and a sample part of a relational database showing different tables (b) 17 Database Models  Keys 8  Fields whose values identify records for display or processing.  Primary key  Uniquely identifies a record  Linking 18 Database Models  The Object-Oriented Structure 8  Affords maintenance of data along with the applications that process them  Entity-Relationship Diagrams  Conceptual blueprint of a database  Graphical representation of all entity relationships 19 Database Models 8 Figure 8.10 An entity-relationship diagram 20 Components of Database Management Systems  The Schema 8  Describes the structure of the database  The Data Dictionary (Metadata)  Maintains all information supplied by the developer when constructing the schema 21 Components of Database Management Systems 8 Figure 8.12 A typical data dictionary for a staff file 22 Components of Database Management Systems  Data Definition Language (DDL)  Used to construct the schema 8 Figure 8.13 Data definition language to create a schema in NOMAD 23 Components of Database Management Systems  Data Manipulation Language (DML)  Used to query the database 8 Figure 8.14 A Paradox query by example 24 Relational Operations  Data Manipulation  Select, Project, Join 8  Structured Query Language (SQL)  International standard DDL and DML for relational DBMS.  Advantages of using SQL  Users do not need to learn different DDLs and DMLs.  SQL can be embedded in widely used 3rd generation languages, increasing efficiency and effectiveness.  Programmer not forced to rewrite statements since SQL statements are portable. 25 Relational Operations 8 Figure 8.15 A join table of professors and their students 26 Popular Database Management Systems DATABASE MODEL Hierarchical Network 8 Relational Object-Relational PRODUCT Focus IMS Ramis ADABAS Image Access DB2 dBASE V EDA/SQL FoxPro Ingres NOMAD Oracle Paradox Rbase SQL/DS SQL Server Sybase ObjectStore Universal Server Illustra VENDOR Information Builders International IBM Online Software International Software AG of North America Hewlett-Packard Microsoft IBM Borland International Information Builders International Microsoft Ask Group Must Software International Oracle Borland International Microrim IBM Microsoft Sybase Object Design Informix HARDWARE Mainframe/PC Mainframe Mainframe Mainframe Mainframe PC Mainframe PC PC PC PC Mainframe/PC Mainframe/PC PC PC Mainframe PC PC PC PC Informix PC Figure 8.16 Popular DBMSs 27 Database Architecture  Distributed Databases 8  Replication  Full copy of the entire database is stored at all sites  Fragmentation  Parts of database are stored where they are most often accessed 28 Database Architecture 8 Figure 8.17 A replicated database: each computer holds a copy of the entire database 29 Database Architecture 8 Figure 8.18 A fragmented database: each computer holds only the part of the database that is most frequently accessed by the local users 30 Database Architecture  Shared Resource and Client/Server Systems 8  Four basic client/server models  Applications run at a server  Applications run on local PCs  Applications run on both the local PCs and the server  Applications and key elements of the database are split between the PCs and the server 31 Database Architecture 8 Figure 8.19 Shared resource and client/server architectures 32 Web Databases  Databases on the Web 8     Catalogs Libraries Directories Client lists and profiles  When linking a database to the Internet, consider  Which application to use  How to ensure Web surfers do not interfere with database updates  How to maintain security 33 Data Warehousing  Data warehouse  Collection of data that supports management decision making 8  Phases in Building a Data Warehouse  Extraction Phase  Cleansing Phase  Loading Phase  Data Mining  Selecting, exploring, and modeling data to discover unknown relationships 34 Data Warehousing 8 Figure 8.20 Data are warehoused for analysis and reporting 35 Data-Mining 8 Figure 8.21 Potential applications of data-mining 36 Knowledge Management  The attempt by organizations to:  Transfer knowledge into databases 8  Filter and separate the most relevant knowledge  Organize knowledge in databases that either  Allow other employees to easily access the knowledge  “Push” specific knowledge to employees based on their prespecified needs 37 Ethical and Societal Issues A Too-Risky Info Highway  Out of Hand -- Out of Control 8  DBMSs allow organizations to collect, maintain, and sell vast amounts of private personal data easily.  Where is the Information Going?  Many consumers provide information daily without being aware of where it is actually going. 38 Ethical and Societal Issues A Too-Risky Info Highway  Personal Data Matched, Sliced , and Diced 8  Pieces of personal data may be matched and put together to reveal private life in unexpected ways.  Error Propagation  In case of errors, it may be impossible to trace your data to all organizations that have it.  The Upside  Database technology enables better and faster services. 39
 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
									 
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                             
                                            