Database Processing Chapter 4.

Slides:



Advertisements
Similar presentations
Moores Law Co-founder of Intel The number of transistors per square inch on an integrated chip [speed of computing] doubles every 18 months. Accurate for.
Advertisements

Chapter 4 Database Processing. Agenda Purpose of Database Terminology Components of Database System Multi-user Processing Database Design Entity-relationship.
Database Design Chapter Extension 4. ce4-2 Study Questions Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall Q1: Who will volunteer?
Using MIS 2e Chapter 5 Database Processing MARIA DEL MORAL GROUP F.
Using MIS 2e Chapter 5: Database Processing David Kroenke
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Lecture-7/ T. Nouf Almujally
Database Processing: Fundamentals, Design and Implementation, 9/e by David M. KroenkeChapter 1/1 Copyright © 2004 Please……. No Food Or Drink in the class.
Management Information Systems, Sixth Edition
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Chapter 5 Database Processing.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
Introduction to Management Information Systems Chapter 4 Database Processing HTM 304 Fall 07.
Client/Server Databases and the Oracle 10g Relational Database
Database Management: Getting Data Together Chapter 14.
© 2007 Prentice Hall, Inc.1 Using Management Information Systems David Kroenke Database Processing Chapter 4.
CSCI 150 Database Applications Chapter 1 – Getting Started.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
1 Review SQL Exercise: UPDATE StudentTable SET LetterScore = ’A’ WHERE Score >= ‘90’. Original Table: StudentTable StudentNumberStudentNameScoreLetterScore.
Fundamentals, Design, and Implementation, 9/e Chapter 1 Introduction to Database Processing.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Chapter 3: Data Modeling
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Database Processing.
Database Processing.
David Kroenke Database Processing Chapter 4 © 2007 Prentice Hall, Inc. 1.
Using MIS 4e Chapter 5 Database Processing
ระบบฐานข้อมูลขั้นสูง (Advanced Database Systems) Lecturer AJ. Suwan Janin Phone:
Database Processing.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Introduction to Accounting Information Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Management Information Systems By Effy Oz & Andy Jones
Concepts and Terminology Introduction to Database.
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 January Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Chapter 5 Database Processing. Neil uses software to query a database, but it has about 25 standard queries that don’t give him all he needs. He imports.
Database Design and Management CPTG /23/2015Chapter 12 of 38 Functions of a Database Store data Store data School: student records, class schedules,
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Database Management System (DBMS) an Introduction DeSiaMore 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Information Systems Today: Managing in the Digital World TB3-1 3 Technology Briefing Database Management “Modern organizations are said to be drowning.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Database Processing Chapter "No, Drew, You Don’t Know Anything About Creating Queries.” Copyright © 2015 Pearson Education, Inc. Operational database.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Application Extension 5a
CSCI-100 Introduction to Computing
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Database Design Chapter 7.
Presentation transcript:

Database Processing Chapter 4

Learning Objectives Know the purpose of database processing. List the components of a database system. Understand important database terms. Know the elements of the entity-relationship model. Understand the general nature of database design. Recognize the need for and know the basic tasks of database administration .

What Is a Database? A database is a self-describing collection of integrated records. A byte is a character of data. Bytes are grouped into columns, such as Student Number and Student Name. Columns are also called fields. Columns or fields, in turn, are grouped into rows, which are also called records. There is a hierarchy of data elements. A database is a collection of tables plus relationships among the rows in those tables, plus special data, called metadata. Metadata describes the structure of the database.

Relationships Among Records A key is a column or group of columns that identifies a unique row in a table. Student Number is the key of the Student table. A foreign key is a non-key column or field in one table that links to a primary key in another table. Student Number in the Email and Office_Visit tables Relational databases store their data in the form of tables that represent relationships using foreign keys.

Components of a Database

Examples of Relationships Among Rows

Metadata Databases are self-describing because they contain not only data, but also data about the data in the database. Metadata are data that describe data. The format of metadata depends on the software product that is processing the database. Field properties describe formats, a default value for Microsoft Access to supply when a new row is created, and the constraint that a value is required for the column. The presence of metadata makes databases much more useful. Because of metadata, no one needs to guess, remember, or even record what is in the database. Metadata make databases easy to use for both authorized and unauthorized purposes.

Components of a Database Application System By itself database, is not very useful. Pure database data are correct, but in raw form they are not pertinent or useful. Database applications make database data more accessible and useful. Users employ a database application that consists of forms, formatted reports, queries, and application programs. Each of these, in turn, calls on the database management system (DBMS) to process the database tables.

Database Management System A database management system (DBMS) is a program used to create, process, and administer a database. Almost no organization develops its own DBMS. Companies license DBMS products from vendors like IBM, Microsoft, Oracle, and others. Popular DBMS products are: DB2 from IBM Access and SQL Server from Microsoft MySQL, an open-source DBMS product that is free for most applications The DBMS and the database are two different things: A DBMS is a software program. A database is a collection of tables, relationships, and metadata.

Creating the Database and Its Structures Database developers use the DBMS to create tables, relationships, and other structures in the database. A form can be used to define a new table or to modify an existing one. To create a new table, the developer just fills out a new form. To modify an existing table say, to add a new column, the developer opens the metadata form for that table and adds a new row of metadata.

Processing the Database The second function of the DBMS is to process the database. Applications use the DBMS for four operations: read, insert, modify, or delete data. The applications call upon the DBMS in different ways: Via a form, when the user enters new or changed data Via a computer program behind the form calls the DBMS to make the necessary database changes Via an application program, the program calls the DBMS directly to make the change Structured Query Language (SQL) is an international standard language for processing a database. All five of the DBMS products mentioned earlier accept and process SQL statements. SQL can be used to create databases and database structures.

Administering the Databases A third DBMS function is to provide tools in the administration of the database. Database administration involves a wide variety of activities. For example, the DBMS can be used to set up a security system involving user accounts, passwords, permissions, and limits for processing the database DBMS administrative functions also include: Backing up database data Adding structures to improve the performance of database applications Removing data that are no longer wanted or needed, and similar tasks

Database Applications A database application is a collection of forms, reports, queries, and application programs that process a database. A database may have one or more applications, and each application may have one or more users. Applications have different purposes, features, and functions, but they all process the same inventory data stored in a common database.

Forms, Reports, and Queries Data entry forms are used to read, insert, modify, and delete data. Reports show data in a structured content. Some reports also compute values as they present the data. DBMS programs provide comprehensive and robust features for querying database data.

Database Application Programs Application programs process logic that is specific to a given business need. Application programs enable database processing over the Internet. For this use, the application program serves as an intermediary between the Web server and the database. The application program responds to events, such as when a user presses a submit button; it also reads; inserts; modifies; and deletes database data.

Enterprise DBMS Versus Personal DBMS DBMS products fall into two broad categories: Enterprise DBMS and Personal DBMS. Enterprise DBMS These products process large organizational and workgroup databases. These products support many users, perhaps thousands, of users and many different database applications. Such DBMS products support 24/7 operations and can manage dozens of different magnetic disks with hundreds of gigabytes or more data. IBM’s DB2, Microsoft’s SQL Server, and Oracle are examples of enterprise DBMS products. Personal DBMS These products are designed for smaller, simpler database applications. Such products are used for personal or small workgroup applications that involve fewer than 100 users, and normally fewer than 15. The great bulk of databases in this category have only a single user. Microsoft Access is the only available personal DBMS.

Developing a Database Application The reason that user involvement is so important for database development is that the database design depends entirely on how users view their business environment. Database structures can be complex, in some cases, very complex. Before building, the database, the developers construct a logical representation of database data called a data model. The data model describes the data and relationships that will be stored in the database. The data model is referred to as a blueprint.

Entities An entity is something that the users want to track. Examples of entities are Order, Customer, Salesperson, and Item Some entities represent a physical object, such as an Item or Salesperson; others represent a logical construct of transaction, such as Order or Contact. Entities have attributes that describe characteristics of the entity. Example attributes of Salesperson are SalespersonName, Email, Phone, and so forth Entities have an identifier, which is an attribute (or group of attributes) whose value is associated with one and only one entity instance. For example, OrderNumber is an identifier of Order, because only one Order instance has a given value of OrderNumber. CustomerNumber is an identifier of Customer. If each member of the sales staff has a unique name, then SalespersonName is an identifier of Salesperson.

Student Data Model Entities

Relationships Entities have relationships to each other. Database designers use diagrams called entity-relationship (E-R) diagrams. All of the entities of one type are represented by a single rectangle. A line is used to represent a relationship between two entities. If two entities have a plain straight line between them, then this type of relationship is called one-to-one. If two entities have a line between them, but at the end of one line in one of the two directions (left or right) exists an arrow (crow’s foot), then this type of relationship is called one-to-many. If two entities have a line between them, but at the end of the line in both directions (left and right) exists an arrow (crow’s foot), then this type of relationship is called many-to-many. The crow’s-foot notation shows the maximum number of entities that can be involved in a relationship. This is called the relationship’s maximum cardinality. Common examples of maximum cardinality are 1:N, N:M, and 1:1. Constraints on minimum requirements are called minimum cardinalities.

Relationships Showing Minimum Cardinalities

Database Design Database design is the process of converting a data model into tables, relationships, and data constraints. The database design team transforms entities into tables and expresses relationships by defining foreign keys.

Normalization Normalization is the process of converting poorly structured tables into two or more well-structured tables. Data Integrity Problems For example, suppose for a given table, the value for a defined attribute is changed correctly in two rows, but not in the third The table has what is called a data integrity problem: Some rows indicate that the name of the attribute is one value and another row indicates that the name of the value of the attribute is another. This is called multi-value. Data integrity problems are serious. A table that has data integrity problems will produce incorrect and inconsistent information. Users will lose confidence in the information, and the system will develop a poor reputation. Information systems with poor reputations become serious burdens to the organizations that use them.

Importance of User’s Review Users are the final judges as to what data the database should contain and how records in the database should be related to one another. The easiest time to change the database structure is during the data modeling stage. However, once the database has been constructed, loaded with data, and application forms, reports, queries, and application programs created, changing a relationship means weeks of work. When a database is developed for your use, you must carefully review the data model. If you do not understand any aspect of it, you should ask for clarification until you do. The data model must accurately reflect your view of the business. Do not proceed unless the data model is correct.

Database Administration In light of both the importance and the management challenges of databases, most organizations have created a staff function called database administration. In smaller organizations, this function is usually served by a single person, sometimes even on a part-time basis. Larger organizations assign several people to an office of database administration. Depending on the context, the letters DBA either stand for the database administrator or for the office of database administration. The purpose of database administration is to manage the development, operation, and maintenance of a database so as to achieve the organization’s objectives. This function requires balancing conflicting goals: protecting the database while maximizing its availability for authorized use. An important DBA function is to establish community-wide policies for the processing of the database.

Summary A database is a self-describing collection of integrated records. With the relational model, data are stored in tables and relationships are represented by column values. A key, or table key, is a column or group of columns that uniquely identifies a row. A foreign key is a column or group of columns in one table that identifies a row in a second table. Metadata are data that describe data. A database application system includes the database, the database management system (DBMS), and database applications. The DBMS is a program used to create, process, and administer a database. Structured Query Language (SQL) is an international standard for defining and processing database data. A database application consists of forms, reports, queries, and application programs. A data model is a logical representation of a database that describes data and relationships. An entity is something that users want to track. Entities have relationships to one another. Database design is the process of converting a data model into tables, relationships, and data construction. Normalization is the process of converting poorly structured tables into tables that are well structured.