D I T211 Chapter 1


Published on

Published in: Technology
  • Be the first to comment

No Downloads
Total views
On SlideShare
From Embeds
Number of Embeds
Embeds 0
No embeds

No notes for slide

D I T211 Chapter 1

  1. 1. Chapter 1 Introduction to Database
  2. 2. Objectives <ul><li>At the end of this chapter, students should be able to: </li></ul><ul><ul><li>Identify the structure of database . </li></ul></ul><ul><ul><li>Define data and information . </li></ul></ul><ul><ul><li>Identify the hierarchy of data . </li></ul></ul><ul><ul><li>Identify the types of data </li></ul></ul><ul><ul><li>Identify the database . </li></ul></ul><ul><ul><li>Identify the file based approach and database system approach </li></ul></ul><ul><ul><li>Identify why we need database . </li></ul></ul><ul><ul><li>Identify the purpose of database . </li></ul></ul><ul><ul><li>Identify the components of database system . </li></ul></ul><ul><ul><li>Evolution of database systems . </li></ul></ul>
  3. 3. Database Structure <ul><li>Data </li></ul><ul><ul><li>Data consists of facts, text, graphics and figure that can be recorded and have implicit meaning. </li></ul></ul><ul><li>Information </li></ul><ul><ul><li>Information is the data that have been processed and being made to be useful for users or decision-makers. </li></ul></ul>
  4. 4. Database Structure (cont.) <ul><li>Hierarchical Data </li></ul><ul><li>Types of Data </li></ul><ul><ul><li>Text </li></ul></ul><ul><ul><li>Numeric </li></ul></ul><ul><ul><li>Boolean </li></ul></ul><ul><ul><li>Currency </li></ul></ul><ul><ul><li>Date / Time </li></ul></ul>
  5. 5. Fundamentals of Database <ul><li>Non – Computerized System </li></ul><ul><ul><li>Non-computerized systems basically are all records or data that store manually in different file locations. </li></ul></ul><ul><ul><li>The non computerized systems include telephone books, dictionaries, recipe books, encyclopedias and anything else which has organized and collected data. </li></ul></ul><ul><ul><li>To make the data useful, additional information is designed based on the data to solve a problem with a purpose. </li></ul></ul><ul><ul><li>Usually, a data is organized and sorted alphabetically, numerically, extracted or combined with other data to produce the useful information. </li></ul></ul><ul><ul><li>Problem : Non-computerized System is not efficient because it consumes a lot of time to find and modify the information. </li></ul></ul>
  6. 6. Fundamentals of Database (cont.) <ul><li>Traditional File Processing Approach </li></ul><ul><ul><li>All data are stored in individual files and each file has their own application program that manages and responsible their own files. </li></ul></ul><ul><ul><li>Collection of application programs that provide services to end user such as producing report. </li></ul></ul>
  7. 7. Fundamentals of Database (cont.) <ul><li>Disadvantages of File Based Approach </li></ul><ul><ul><li>Duplication of Data </li></ul></ul><ul><ul><ul><li>Same data is held by different programs and stored in several locations. This situation requires additional space and maintaining and updating data in several locations is expensive. </li></ul></ul></ul><ul><ul><li>Data Integrity Problem </li></ul></ul><ul><ul><ul><li>Files are stored within each application program that accesses a given data. The problem occurs if updates are not applied in every file. Changing the data in only one of the system will cause inconsistent data and result in the other system because of duplication of data. </li></ul></ul></ul><ul><ul><li>Limited Data Sharing </li></ul></ul><ul><ul><ul><li>Each application has it owns private files and users have little opportunity to share data outside their own application. </li></ul></ul></ul><ul><ul><li>Lengthy Development Time </li></ul></ul><ul><ul><ul><li>Each new application requires that the developer essentially start from scratch by designing new file formats. It takes time to manipulate the data. </li></ul></ul></ul>
  8. 8. Fundamentals of Database (cont.) <ul><li>Database Approach </li></ul><ul><ul><li>Definition of Database </li></ul></ul><ul><ul><ul><li>Database is a collection of related data, designed to meet the information needed in an organization and stores it in one specific location. </li></ul></ul></ul><ul><ul><li>Definition of Database Management System (DBMS) </li></ul></ul><ul><ul><ul><li>DBMS is a collection of programs that enable users to create and maintain a database and provide control access to the database. </li></ul></ul></ul><ul><ul><li>Definition of Application Program </li></ul></ul><ul><ul><ul><li>It is a custom developed program for processing a database. It can be written in a standard procedural language such as COBOL, C, or BASIC or in a language unique to the DBMS. </li></ul></ul></ul><ul><ul><li>Definition of Application </li></ul></ul><ul><ul><ul><li>It is a business computer system that processes a portion of the database to meet user information needs. It consists of menus, forms, reports, queries and application programs. </li></ul></ul></ul><ul><ul><li>Definition of User </li></ul></ul><ul><ul><ul><li>It is the person who uses, adds, deletes or modifies data in the database. </li></ul></ul></ul>
  9. 9. Fundamentals of Database (cont.) Figure 1-8 Database Management System
  10. 10. Fundamentals of Database (cont.) <ul><li>Why do we need database? </li></ul><ul><ul><li>For business use </li></ul></ul><ul><ul><li>For personal use </li></ul></ul><ul><li>Purpose of Using Database </li></ul><ul><ul><li>To store information </li></ul></ul><ul><ul><li>To find information </li></ul></ul><ul><ul><li>Analyze and print information </li></ul></ul>
  11. 11. Components of Database System Environment
  12. 12. Components of Database System Environment (cont.)
  13. 13. Components of Database System
  14. 14. Components of Database System (cont.) <ul><li>Database </li></ul><ul><ul><li>Collection of related data designed to meet user requirements / organization needs and stores in specific location. </li></ul></ul><ul><ul><li>Elements of database </li></ul></ul><ul><ul><li>User data </li></ul></ul><ul><ul><ul><li>Data that contains in a table / relations </li></ul></ul></ul><ul><ul><li>Metadata </li></ul></ul><ul><ul><ul><li>Structure of data that stores in data dictionary. Data dictionary stores the description of all objects that interact in the database. </li></ul></ul></ul><ul><ul><li>Index </li></ul></ul><ul><ul><ul><li>Data that are sort in ascending or descending order in the database, to improve the performance and accessibility of the database. </li></ul></ul></ul><ul><ul><li>Application metadata </li></ul></ul><ul><ul><ul><li>Used to store the structure and format of forms, reports, queries and other application programs created by user. </li></ul></ul></ul>
  15. 15. Components of Database System (cont.)
  16. 16. Components of Database System (cont.)
  17. 17. Components of Database System (cont.)
  18. 18. Components of Database System (cont.) <ul><li>DBMS Engine </li></ul><ul><ul><li>Intermediary between design tools and run time. </li></ul></ul><ul><ul><li>Design tools </li></ul></ul><ul><ul><ul><li>A design tool has a set of tools to design and create the database application. It includes tools for creating tables, forms, queries and reports. </li></ul></ul></ul><ul><ul><li>Run time </li></ul></ul><ul><ul><ul><li>Processes the application components that are developed by using design tools. </li></ul></ul></ul>
  19. 19. Components of Database System (cont.) <ul><li>Table </li></ul><ul><ul><li>Stores information about specific topic. </li></ul></ul>
  20. 20. Components of Database System (cont.) <ul><li>Forms </li></ul><ul><ul><li>Display information inside the database in an attractive way. </li></ul></ul><ul><ul><li>Provide the fastest way to view, enter and modify data in a database. </li></ul></ul>
  21. 21. Components of Database System (cont.) <ul><li>Queries </li></ul><ul><ul><li>Allows user to find information needed from the database. </li></ul></ul>
  22. 22. Components of Database System (cont.) <ul><li>Reports </li></ul><ul><ul><li>Documents that contains summarized data in a database. </li></ul></ul>
  23. 23. Advantages of Database Approach <ul><li>Minimal Data Redundancy – because data is stored in a single database, data item do not need to be duplicated in separate files for various systems. </li></ul><ul><li>Sharing of data – data can be shared across the enterprise, allowing more users to access more data. </li></ul><ul><li>Economy in distributing database – database design allows better utilization of hardware. For example, company does not need to use expensive mainframe but using distributed databases on smaller computers. </li></ul><ul><li>Improved Data Consistency – by eliminating data redundancy, the data inconsistency also reduced. For example, if a customer address is stored only once, we cannot have disagreement on the stored values. Updating values is greatly simplified when each value is stored in one place only. </li></ul>
  24. 24. Evolution of Database Systems