Presentation is loading. Please wait.

Presentation is loading. Please wait.

1 January 321450 Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua

Similar presentations


Presentation on theme: "1 January 321450 Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua"— Presentation transcript:

1 1 January 2011wichai@buu.ac.th1

2 321450 Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua E-mail : wichai@buu.ac.th http://www.informatics.buu.ac.th/~wichai

3 1 January 2011wichai@buu.ac.th3 3 Data Management Without data and the ability to process it, an organization could not successfully complete most business activities Data consists of raw facts To transform data into useful information it must first be organized in a meaningful way

4 1 January 2011wichai@buu.ac.th4 Purpose: To organize and keep track of things Spreadsheets Keep track of only a single theme   Example: Student test scores in a course Databases Allow keeping track of multiple themes   Examples: Student grades, office visits, student email 5-4 What Is the Purpose of a Database?

5 1 January 2011wichai@buu.ac.th5 5-5 A List of Student Grades, Single Theme

6 1 January 2011wichai@buu.ac.th6 5-6 Form for Recording Multiple Themes

7 1 January 2011wichai@buu.ac.th7 7 What Is a Database? Table or file: A group of records

8 1 January 2011wichai@buu.ac.th8 5-8 Hierarchy of Data Elements

9 1 January 2011wichai@buu.ac.th9 Components of a Database 5-9 Components of a Database

10 1 January 2011wichai@buu.ac.th10 First row of the Email Table is related to Andrea Baker in Student Table Last row in Office_Visit Table related to Adam Verberra in Student Table 5-10 Example of Relationships Among Rows

11 1 January 2011wichai@buu.ac.th11 A column or group of columns that identifies a unique row in a table. Student Number is key of Student table. Every table must have a key. Sometimes more than one column is needed to form a unique identifier. In a table called City, key would consist of combination of City and State columns. Email_Num is key of Email Table. VisitID is key of Office_Visit Table. Key 5-11 Special Terms

12 1 January 2011wichai@buu.ac.th12 A non-primary key in one table that is related to a primary key of a different table Foreign key Relationships among tables are created by using foreign keys Relationa l database s Formal name for a table Relation 5-12 More Special Terms

13 1 January 2011wichai@buu.ac.th13 5-13 Metadata: Data that Describes Data

14 1 January 2011wichai@buu.ac.th14 The Database Approach The Database Approach Traditional approach to data management Separate data files are created and stored for each application program Database approach to data management Pool of related data is shared by multiple application programs

15 1 January 2011wichai@buu.ac.th15 The Database Approach to Data management The Database Approach to Data management

16 1 January 2011wichai@buu.ac.th16 Disadvantages of the Database Approach Disadvantages of the Database Approach

17 1 January 2011wichai@buu.ac.th17 Data Modeling and Database Characteristics When building a database, an organization must consider: Content: What data should be collected and at what cost? Access: What data should be provided to which users and when? Logical structure: How should data be arranged so that it makes sense to a given user? Physical organization: Where should data be physically located?

18 1 January 2011wichai@buu.ac.th18 Data Modeling Building a database requires two types of designs Logical design Abstract model of how data should be structured and arranged to meet an organization’s information needs Physical design Starts from the logical database design and fine-tunes it for performance and cost considerations

19 1 January 2011wichai@buu.ac.th19 Data Modeling (continued) Data model Diagram of data entities and their relationships Enterprise data modeling Starts by investigating the general data and information needs of the organization at the strategic level Entity-relationship (ER) diagrams Data models that use basic graphical symbols to show the organization of and relationships between data

20 1 January 2011wichai@buu.ac.th20 Data Modeling (continued)

21 1 January 2011wichai@buu.ac.th21 The Relational Database Model Relational model Describes data using a standard tabular format Each row of a table represents a data entity Columns of the table represent attributes Domain Allowable values for data attributes

22 1 January 2011wichai@buu.ac.th22 The Relational Database Model

23 1 January 2011wichai@buu.ac.th23 RelationshipRelationship ตารางที่มีข้อมูลเกี่ยวข้องกัน สามารถสร้างความสัมพันธ์ เพื่อลดความซ้ำซ้อนของ ข้อมูล และสะดวกต่อการ แก้ไขข้อมูล

24 1 January 2011wichai@buu.ac.th24 The Relational Database Model (continued) Manipulating Data Selecting Eliminates rows according to certain criteria Projecting Eliminates columns in a table Joining Combines two or more tables Linking Manipulating two or more tables that share at least one common data attribute

25 1 January 2011wichai@buu.ac.th25 The Relational Database Model (continued) Data cleanup Process of looking for and fixing inconsistencies to ensure that data is accurate and complete Eliminates redundancies and anomalies

26 1 January 2011wichai@buu.ac.th26 Database Management Systems (DBMSs) Creating and implementing the right database system Ensures that the database will support both business activities and goals Capabilities and types of database systems vary considerably

27 1 January 2011wichai@buu.ac.th27 Overview of Database Types Flat file Simple database program whose records have no relationship to one another Single user Only one person can use the database at a time Examples: Access, FileMaker, and InfoPath Multiple user Allows dozens or hundreds of people to access the same database system at the same time Examples: Oracle, Sybase, and IBM

28 1 January 2011wichai@buu.ac.th28 Creating and Modifying the Database Data definition language (DDL) Collection of instructions and commands used to define and describe data and relationships in a specific database Allows database’s creator to describe data and relationships that are to be contained in the schema Data dictionary Detailed description of all the data used in the database

29 1 January 2011wichai@buu.ac.th29 Storing and Retrieving Data When an application program needs data It requests the data through the DBMS Concurrency control Can be used to avoid this potential problem

30 1 January 2011wichai@buu.ac.th30 Storing and Retrieving Data

31 1 January 2011wichai@buu.ac.th31 Manipulating Data and Generating Reports Data manipulation language (DML) Commands that manipulate the data in a database Structured Query Language (SQL) Adopted by the American National Standards Institute (ANSI) as the standard query language for relational databases Once a database has been set up and loaded with data it can produce reports, documents, and other outputs

32 1 January 2011wichai@buu.ac.th32 International standard language for creating databases and database structures, and processing databases All five of the most popular DBMS products accept and process SQL SQL “see-quell” INSERT INTO Student ([Student Number], [Student Name], HW1, HW2, MidTerm) VALUES (1000, ’Franklin, Benjamin’, 90, 95, 100); SQL statement to insert a new row into student table: 5-32 Structured Query Language (SQL)

33 1 January 2011wichai@buu.ac.th33 Database Administration DBA Works with users to decide the content of the database Works with programmers as they build applications to ensure that their programs comply with database management system standards and conventions Data administrator Responsible for defining and implementing consistent principles for a variety of data issues

34 1 January 2011wichai@buu.ac.th34 Process large organizational and workgroup databases Support many users and many database applications Support 24/7 operations; manage databases that span dozens of disks with hundreds of gigabytes or more of data IBM’s DB2, Microsoft’s SQL Server, and Oracle’s Oracle 11g Enterprise DBMS Designed for smaller, simpler database applications Used by single user or small workgroup of fewer than 100 users, but normally fewer than 15 Personal DBMS Enterprise DBMS vs. Personal DBMS 5-34

35 1 January 2011wichai@buu.ac.th35 Selecting a Database Management System Important characteristics of databases to consider Database size Database cost Concurrent users Performance Integration Vendor

36 1 January 2011wichai@buu.ac.th36 Database Applications Today’s database applications manipulate the content of a database to produce useful information Common manipulations Searching, filtering, synthesizing, and assimilating data contained in a database using a number of database applications

37 1 January 2011wichai@buu.ac.th37 5-37 Database Applications

38 1 January 2011wichai@buu.ac.th38 Linking Databases to the Internet Semantic Web Developing a seamless integration of traditional databases with the Internet Allows people to access and manipulate a number of traditional databases at the same time through the Internet

39 1 January 2011wichai@buu.ac.th39 Four Database Application Programs Running on a Web Server Computer 5-39

40 1 January 2011wichai@buu.ac.th40 Data Warehouses, Data Marts, and Data Mining Data warehouse Database that holds business information from many sources in the enterprise Data mart Subset of a data warehouse Data mining Information-analysis tool that involves the automated discovery of patterns and relationships in a data warehouse

41 1 January 2011wichai@buu.ac.th41 Elements of a Data Warehouses

42 1 January 2011wichai@buu.ac.th42 Distributed Databases Distributed database Database in which the data may be spread across several smaller databases connected via telecommunications devices Gives corporations more flexibility in how databases are organized and used Replicated database Holds a duplicate set of frequently used data

43 1 January 2011wichai@buu.ac.th43 Principles of Information Systems, Ninth Edition43 The Use of a Distributed Databases

44 1 January 2011wichai@buu.ac.th44 Online Analytical Processing (OLAP) Software that allows users to explore data from a number of different perspectives Leading OLAP software vendors Microsoft, Cognos, SAP, Business Objects MicroStrategy, Applix, Infor, and Oracle

45 1 January 2011wichai@buu.ac.th45 Summary Data One of the most valuable resources that a firm possesses Entity Generalized class of objects for which data is collected, stored, and maintained Traditional file-oriented applications Often characterized by program-data dependence Relational model Places data in two-dimensional tables

46 1 January 2011wichai@buu.ac.th46 Summary (continued) DBMS Group of programs used as an interface between a database and its users and other application programs Basic functions Providing user views Creating and modifying the database Storing and retrieving data Manipulating data and generating reports

47 1 January 2011wichai@buu.ac.th47 Summary (continued) Data warehouses Relational database management systems specifically designed to support management decision making Data mining Automated discovery of patterns and relationships in a data warehouse Business intelligence Process of getting enough of the right information in a timely manner and usable form

48 1 January 2011wichai@buu.ac.th48 Questions?Questions?

49 1 January 2011wichai@buu.ac.th49 Assignment#10Assignment#10 10 a. Database, Database management system (DBMS) และ Database administrator (DBA) คืออะไร ต่างกัน อย่างไร 10 b. จงอธิบายคำ Data Entities, Attributes, Data Elements และ Keys

50 1 January 2011wichai@buu.ac.th50 ส วั ส ดี


Download ppt "1 January 321450 Management of Information Technology Chapter 10 Database Management Asst. Prof. Wichai Bunchua"

Similar presentations


Ads by Google