SlideShare a Scribd company logo
Database System




Lecturer: Mr. Prum Chan Samedy,
MScIT
Tel: 012 456-896
E-mail: chan_samedy@yahoo.com
                                  Bachelor of Science in Information Technology
Objectives

    After finished this course students able to design to
     manage large bodies of information. Management of
     data involves both designing structure for storage of
     information and providing mechanisms for the
     manipulation of information.

  Data Management
     – Build an Entity-Relationship model for a relational DBMS
     – Implement the database in MS Access/SQL Server
     – Normalize tables
     – Produce SQL coding to manage data
  Application Development
     – Plan and design an application system
     – Implement an application in MS Access


Database system                                                   2
Class References




      Fundamental         of
                  Database systems,
                  Elmasri & Navatthe




Database system                             3
Database System


   Chapter 1:

   Introduction Databases and
                Database users




Database system                  4
Outline


      Basic Definitions
      Typical DBMS Functionality
      Example of a Database (UNIVERSITY)
      Advantages of Using the Database Approach
      Database Users




Database system                                    5
Basic Definitions- Data VS Information


   DATA: Facts concerning people, objects, vents or other
   entities. Databases store data.
   INFORMATION: Data presented in a form suitable for
   interpretation.
    Data is converted into information by programs and queries.




Database system   Figure 1.1 Input-process-output
                                                                  6
Example of Data




Database system                     7
Why every employees in company need information?
                               Shopping in supermarket




Database system
Basic Definitions – Database VS DBMS

   DATABASE:


   DATABASE MANAGEMENT
      SYSTEM (DBMS) :
   A software system that enables users
      to define, create, and maintain
      the database and that provides
      controlled access to this
      database.




Database system                                 9
Basic Definitions – Database System


    DATABASE SYSTEM:
      Database System =DBMS+Database
      The DBMS software together with the data itself.
        Sometimes, the applications are also included.
        Oracle, SQL Server,DB2, MySQL, Infomix,…




Database system
Basic Definitions – Metadata

        Metadata
         “Data about data”
              Description of fields Display and format instructions
               Structure of files and tables Security and access rules
               Triggers and operational rules




                             Example of Metadata
Database system                                                          11
Basic Definitions –Sample of Metadata




                  Sample of Metadata




Database system                                    12
Simplified database system environment




                                                 A simplified
                                                 database
                                                 system
                                                 environment



Database system                                          13
Database application program


A     software program
    that interacts with
    the database by
    issuing           an
    appropriate request
    (typically an SQL
    statement) to the
    DBMS.




Database system
Database Overview- Why Use a DBMS?


      Using  a DBMS to manage data has many
         advantages:

          –   Data independence
          –   Sharing of data among multiple applications
          –   Data integrity and security
          –   Concurrent access and crash recovery
          –   Data administration
          –   Reduced application development time



Database system
Database Users-1

      Users      may be divided into
          –   Those who actually use and control the database
              content, and those who design, develop and
              maintain database applications (called “Actors on
              the Scene”), and
          –   Those who design and develop the DBMS software
              and related tools, and the computer systems
              operators (called “Workers Behind the Scene”).




Database system                                              16
Database Users-2


     Actors        on the scene
         –   Database administrators:
               Responsible    for authorizing access to the database, for
                  coordinating and monitoring its use, acquiring software
                  and hardware resources, controlling its use and
                  monitoring efficiency of operations.
         –   Database Designers/Ananyst:
               Responsible     to define the content, the structure, the
                  constraints, and functions or transactions against the
                  database. They must communicate with the end-users
                  and understand their needs.



Database system                                                              17
Database Users-3


        Application programmer/Application Developer
         They access the data from programs written in
         high-level language such as Visual basic or C+
         +,C#, Java. The application programmers design
         systems such as payroll, Inventory, and billing.

        End user
         They use the data for queries, reports and some of
         them update the database content.




Database system                                         18
Exercise 1.1


     Indicate which type of user would perform the
         following functions for a payroll system in a
         large company:
          A.      Write an application program to generate and print
                  the checks.
          B.      Change the address in the database for an
                  employee who has moved.
          C.      Create a new user account for a newly hired
                  payroll clerk




Database system                                                  19
RDBMS


        Relational Database Management System (RDBMS)
          – Relational Database is a collection of relations
            (table)                    Oracle, SQL Server,
                                        DB2, My SQL,…




                                 User tables       Data
                                                dictionary
Database system                                              20
Sample of Relational Database


                                                                  Index

                          199011913       19959999


       19860001          19901913         19911123    19959999



                [EMPLOYEE table]             colum                 Index
                                               n
Hire_ Serial_                                                           [DEPARTMENT table]
                  Emp_Name       Salary     Dept_No
Year No
                                                                 Dept_No    Department        Area
1990   1913       Pich Oudam     180000      5648     Row
                                                                 5648       Systems           P.P
                Prum Chan Dara                                   4327       Personnel         KD
1987   0042                      200000      4327                2271       General affairs   KP
1992   7699     Keo Rithy        190000      2271                0381       Sales             KK
 .     .        .                .           .                   .          .                 .
 .     .        .                .           .                   .          .                 .
       .        .                .           .                   .          .                 .
 .
                                                       Field
Database system                                                                               21
Database Architecture


          Single tier Architecture
          Two-tier Architecture
          Three-tier Architecture




Database system                              22
Single tier




                                    a. Single tier:
             DBMS               All on one machine
            Software
                                Access by terminals


           Database




Database system                                       23
Client/Server (Two tier )

Front-End/Client
                         b. Two-Tier:
 Application
     #1                  Server with many clients




 Application
     #2
                           DBMS                      Database
                           Server                   containing
                          Software                  centralized
                                                    shared data

  Application
      #3
                     DBMS manages data resources
                     like an operating system
                     manages hardware resources

Database system                                             24
Three-tier architecture

                                                        Front-End/Client
  Front-End/Client

                                                                  Application
  Application                                                         #3
      #1


                     DBMS I                      DBMS II
                      Server                      Server
                     Software                    Software
                                  Middleware

                                                                  Applicatio4
  Application                                                         #3
      #2                                         Database
                     Database



                                 c. Three-tier:
                              Two kings of DBMS
                            Connected by Middleware
Database system                                                      25
Three-tier architecture

 Also call Distributed Systems
     Solutions are distributed between client PC’s and one or more
     servers.




Database system
Exercise 1.2



  Specify whether each system would be single-tiered, two-
      tiered, or three-tiered.
  a. The Happy Nights motel chain allows local managers to
      purchase a franchise. They can install and use the
      DBMS of their choice for their reservation system. The
      only requirement is that they be able to connect and
      communicate with the central office’s system.
  b. The Sticky Wicket Company has home offices in Detroit
      and branches in Chicago and Baltimore. The inventory
      and parts database is distributed with each branch
      keeping its own inventory. One central DBMS located in
      Detroit allows instant ordering of supplies through the
      central office.
Database system                                          27
Database system   28

More Related Content

What's hot

What's hot (20)

Rdbms
RdbmsRdbms
Rdbms
 
oracle intro
oracle introoracle intro
oracle intro
 
Unit01 dbms 2
Unit01 dbms 2Unit01 dbms 2
Unit01 dbms 2
 
Ch1
Ch1Ch1
Ch1
 
Dbms notesization 2014
Dbms notesization 2014Dbms notesization 2014
Dbms notesization 2014
 
PHP Roadshow - MySQL Database Essentials
PHP Roadshow - MySQL Database EssentialsPHP Roadshow - MySQL Database Essentials
PHP Roadshow - MySQL Database Essentials
 
Database management system overview
Database management system overviewDatabase management system overview
Database management system overview
 
Mi0034 –database management systems
Mi0034 –database management systemsMi0034 –database management systems
Mi0034 –database management systems
 
What is data model? And types.
What is data model? And types.What is data model? And types.
What is data model? And types.
 
project report
project reportproject report
project report
 
27 fcs157al1 (1)
27 fcs157al1 (1)27 fcs157al1 (1)
27 fcs157al1 (1)
 
DBMS Basics
DBMS BasicsDBMS Basics
DBMS Basics
 
Database management systems
Database management systemsDatabase management systems
Database management systems
 
Chapter 5
Chapter 5Chapter 5
Chapter 5
 
database chap 1 and 2.pptx
database chap 1 and 2.pptxdatabase chap 1 and 2.pptx
database chap 1 and 2.pptx
 
Mi0034 – database management system
Mi0034 – database management systemMi0034 – database management system
Mi0034 – database management system
 
DDBMS
DDBMSDDBMS
DDBMS
 
Top schools in gudgaon
Top schools in gudgaonTop schools in gudgaon
Top schools in gudgaon
 
DBMS
DBMSDBMS
DBMS
 
Database management system by Gursharan singh
Database management system by Gursharan singhDatabase management system by Gursharan singh
Database management system by Gursharan singh
 

Viewers also liked

D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1askme
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2shahab3
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)shahab3
 
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM India Smarter Computing
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1shahab3
 
SoftwareONE Oracle Licensing Introduction 18.02.14
SoftwareONE Oracle Licensing Introduction 18.02.14SoftwareONE Oracle Licensing Introduction 18.02.14
SoftwareONE Oracle Licensing Introduction 18.02.14SoftwareONEPresents
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment>. <
 
Oracle database - The most common license compliance issues seen
Oracle database - The most common license compliance issues seenOracle database - The most common license compliance issues seen
Oracle database - The most common license compliance issues seenb.lay
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Vidyasagar Mundroy
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C ArchitectureSabeeh Ahmed
 
Database Management System
Database Management System Database Management System
Database Management System FellowBuddy.com
 
Insight into Oracle licensing
Insight into Oracle licensingInsight into Oracle licensing
Insight into Oracle licensingITsyndicaat
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsBsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsRai University
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functionsVikas Gupta
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database systemphilipsinter
 
From oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsFrom oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsGuy Harrison
 

Viewers also liked (20)

D I T211 Chapter 1
D I T211    Chapter 1D I T211    Chapter 1
D I T211 Chapter 1
 
Chapter 1
Chapter 1Chapter 1
Chapter 1
 
Database systems - Chapter 2
Database systems - Chapter 2Database systems - Chapter 2
Database systems - Chapter 2
 
Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)Database systems - Chapter 2 (Remaining)
Database systems - Chapter 2 (Remaining)
 
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 SystemsIBM PowerVM Virtualization Technology on IBM POWER7 Systems
IBM PowerVM Virtualization Technology on IBM POWER7 Systems
 
Database systems - Chapter 1
Database systems - Chapter 1Database systems - Chapter 1
Database systems - Chapter 1
 
SoftwareONE Oracle Licensing Introduction 18.02.14
SoftwareONE Oracle Licensing Introduction 18.02.14SoftwareONE Oracle Licensing Introduction 18.02.14
SoftwareONE Oracle Licensing Introduction 18.02.14
 
Chapter 2 database environment
Chapter 2 database environmentChapter 2 database environment
Chapter 2 database environment
 
Database Systems Concepts, 5th Ed
Database Systems Concepts, 5th EdDatabase Systems Concepts, 5th Ed
Database Systems Concepts, 5th Ed
 
Oracle database - The most common license compliance issues seen
Oracle database - The most common license compliance issues seenOracle database - The most common license compliance issues seen
Oracle database - The most common license compliance issues seen
 
Database an introduction
Database an introductionDatabase an introduction
Database an introduction
 
Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)Database Systems - Introduction (Chapter 1)
Database Systems - Introduction (Chapter 1)
 
A N S I S P A R C Architecture
A N S I  S P A R C  ArchitectureA N S I  S P A R C  Architecture
A N S I S P A R C Architecture
 
Database Management System
Database Management System Database Management System
Database Management System
 
Insight into Oracle licensing
Insight into Oracle licensingInsight into Oracle licensing
Insight into Oracle licensing
 
Bsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systemsBsc cs ii-dbms- u-i-database systems
Bsc cs ii-dbms- u-i-database systems
 
Dbms architecture
Dbms architectureDbms architecture
Dbms architecture
 
SQL select statement and functions
SQL select statement and functionsSQL select statement and functions
SQL select statement and functions
 
Fundamentals of Database system
Fundamentals of Database systemFundamentals of Database system
Fundamentals of Database system
 
From oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other toolsFrom oracle to hadoop with Sqoop and other tools
From oracle to hadoop with Sqoop and other tools
 

Similar to Chapter01 introduction

Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptxSreenivas R
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptxChandanHegde13
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1ahfiki
 
Dbms and it infrastructure
Dbms and  it infrastructureDbms and  it infrastructure
Dbms and it infrastructureprojectandppt
 
DEE 431 Introduction to DBMS Slide 1
DEE 431 Introduction to DBMS Slide 1DEE 431 Introduction to DBMS Slide 1
DEE 431 Introduction to DBMS Slide 1YOGESH SINGH
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptLisaMalar
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdfMuniraALmogren
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDhruveeHalvadiya
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management SystemsGeorge Grayson
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDivyaKS12
 
Database administration
Database administrationDatabase administration
Database administrationAnish Gupta
 

Similar to Chapter01 introduction (20)

Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
Introduction to DBMS.pptx
Introduction to DBMS.pptxIntroduction to DBMS.pptx
Introduction to DBMS.pptx
 
Database Design Slide 1
Database Design Slide 1Database Design Slide 1
Database Design Slide 1
 
Dbms and it infrastructure
Dbms and  it infrastructureDbms and  it infrastructure
Dbms and it infrastructure
 
DEE 431 Introduction to DBMS Slide 1
DEE 431 Introduction to DBMS Slide 1DEE 431 Introduction to DBMS Slide 1
DEE 431 Introduction to DBMS Slide 1
 
DbMs
DbMsDbMs
DbMs
 
Chap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.pptChap1-Introduction to database systems.ppt
Chap1-Introduction to database systems.ppt
 
Database Concepts.ppt
Database Concepts.pptDatabase Concepts.ppt
Database Concepts.ppt
 
Chapter1
Chapter1Chapter1
Chapter1
 
DBMS.pptx
DBMS.pptxDBMS.pptx
DBMS.pptx
 
1-introduction to DB.pdf
1-introduction to DB.pdf1-introduction to DB.pdf
1-introduction to DB.pdf
 
Database-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptxDatabase-management-system-dbms-ppt.pptx
Database-management-system-dbms-ppt.pptx
 
Database Management Systems
Database Management SystemsDatabase Management Systems
Database Management Systems
 
En ch01
En ch01En ch01
En ch01
 
ICT L5+.pptx
ICT L5+.pptxICT L5+.pptx
ICT L5+.pptx
 
Data Base Management System
Data Base Management SystemData Base Management System
Data Base Management System
 
INT 1010 07-5.pdf
INT 1010 07-5.pdfINT 1010 07-5.pdf
INT 1010 07-5.pdf
 
23246406 dbms-unit-1
23246406 dbms-unit-123246406 dbms-unit-1
23246406 dbms-unit-1
 
DBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptxDBMS-INTRODUCTION.pptx
DBMS-INTRODUCTION.pptx
 
Database administration
Database administrationDatabase administration
Database administration
 

More from Ngeam Soly

សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាម
សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាមសន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាម
សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាមNgeam Soly
 
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...Ngeam Soly
 
មេរៀនៈ Data Structure and Algorithm in C/C++
មេរៀនៈ Data Structure and Algorithm in C/C++មេរៀនៈ Data Structure and Algorithm in C/C++
មេរៀនៈ Data Structure and Algorithm in C/C++Ngeam Soly
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.netNgeam Soly
 
Chapter 2: Ms SQL Server
Chapter 2: Ms SQL ServerChapter 2: Ms SQL Server
Chapter 2: Ms SQL ServerNgeam Soly
 
Slide for presentation
Slide for presentation Slide for presentation
Slide for presentation Ngeam Soly
 
Accounting assingment year ii
Accounting assingment year iiAccounting assingment year ii
Accounting assingment year iiNgeam Soly
 
Account's Assignment
Account's AssignmentAccount's Assignment
Account's AssignmentNgeam Soly
 
Chapter5: Usage of Build-In Functions or Methods
Chapter5: Usage of Build-In Functions or MethodsChapter5: Usage of Build-In Functions or Methods
Chapter5: Usage of Build-In Functions or MethodsNgeam Soly
 
Chapter3: fundamental programming
Chapter3: fundamental programmingChapter3: fundamental programming
Chapter3: fundamental programmingNgeam Soly
 

More from Ngeam Soly (10)

សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាម
សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាមសន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាម
សន្ធិ​សញ្ញា​កំណត់​ព្រំដែន កម្ពុជា-វៀតណាម
 
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...
អត្ថបទគោល៖ ការងារ​បោះ​បង្គោល​ខណ្ឌ​សីមា​ព្រំ​ដែន​​គោក និង​​ការ​​កំណត់​ព្រំដែន​...
 
មេរៀនៈ Data Structure and Algorithm in C/C++
មេរៀនៈ Data Structure and Algorithm in C/C++មេរៀនៈ Data Structure and Algorithm in C/C++
មេរៀនៈ Data Structure and Algorithm in C/C++
 
Chapter 3: ado.net
Chapter 3: ado.netChapter 3: ado.net
Chapter 3: ado.net
 
Chapter 2: Ms SQL Server
Chapter 2: Ms SQL ServerChapter 2: Ms SQL Server
Chapter 2: Ms SQL Server
 
Slide for presentation
Slide for presentation Slide for presentation
Slide for presentation
 
Accounting assingment year ii
Accounting assingment year iiAccounting assingment year ii
Accounting assingment year ii
 
Account's Assignment
Account's AssignmentAccount's Assignment
Account's Assignment
 
Chapter5: Usage of Build-In Functions or Methods
Chapter5: Usage of Build-In Functions or MethodsChapter5: Usage of Build-In Functions or Methods
Chapter5: Usage of Build-In Functions or Methods
 
Chapter3: fundamental programming
Chapter3: fundamental programmingChapter3: fundamental programming
Chapter3: fundamental programming
 

Chapter01 introduction

  • 1. Database System Lecturer: Mr. Prum Chan Samedy, MScIT Tel: 012 456-896 E-mail: chan_samedy@yahoo.com Bachelor of Science in Information Technology
  • 2. Objectives After finished this course students able to design to manage large bodies of information. Management of data involves both designing structure for storage of information and providing mechanisms for the manipulation of information. Data Management – Build an Entity-Relationship model for a relational DBMS – Implement the database in MS Access/SQL Server – Normalize tables – Produce SQL coding to manage data Application Development – Plan and design an application system – Implement an application in MS Access Database system 2
  • 3. Class References  Fundamental of Database systems, Elmasri & Navatthe Database system 3
  • 4. Database System Chapter 1: Introduction Databases and Database users Database system 4
  • 5. Outline  Basic Definitions  Typical DBMS Functionality  Example of a Database (UNIVERSITY)  Advantages of Using the Database Approach  Database Users Database system 5
  • 6. Basic Definitions- Data VS Information DATA: Facts concerning people, objects, vents or other entities. Databases store data. INFORMATION: Data presented in a form suitable for interpretation. Data is converted into information by programs and queries. Database system Figure 1.1 Input-process-output 6
  • 8. Why every employees in company need information? Shopping in supermarket Database system
  • 9. Basic Definitions – Database VS DBMS DATABASE: DATABASE MANAGEMENT SYSTEM (DBMS) : A software system that enables users to define, create, and maintain the database and that provides controlled access to this database. Database system 9
  • 10. Basic Definitions – Database System  DATABASE SYSTEM: Database System =DBMS+Database The DBMS software together with the data itself. Sometimes, the applications are also included. Oracle, SQL Server,DB2, MySQL, Infomix,… Database system
  • 11. Basic Definitions – Metadata  Metadata “Data about data”  Description of fields Display and format instructions Structure of files and tables Security and access rules Triggers and operational rules Example of Metadata Database system 11
  • 12. Basic Definitions –Sample of Metadata Sample of Metadata Database system 12
  • 13. Simplified database system environment A simplified database system environment Database system 13
  • 14. Database application program A software program that interacts with the database by issuing an appropriate request (typically an SQL statement) to the DBMS. Database system
  • 15. Database Overview- Why Use a DBMS?  Using a DBMS to manage data has many advantages: – Data independence – Sharing of data among multiple applications – Data integrity and security – Concurrent access and crash recovery – Data administration – Reduced application development time Database system
  • 16. Database Users-1  Users may be divided into – Those who actually use and control the database content, and those who design, develop and maintain database applications (called “Actors on the Scene”), and – Those who design and develop the DBMS software and related tools, and the computer systems operators (called “Workers Behind the Scene”). Database system 16
  • 17. Database Users-2  Actors on the scene – Database administrators:  Responsible for authorizing access to the database, for coordinating and monitoring its use, acquiring software and hardware resources, controlling its use and monitoring efficiency of operations. – Database Designers/Ananyst:  Responsible to define the content, the structure, the constraints, and functions or transactions against the database. They must communicate with the end-users and understand their needs. Database system 17
  • 18. Database Users-3  Application programmer/Application Developer They access the data from programs written in high-level language such as Visual basic or C+ +,C#, Java. The application programmers design systems such as payroll, Inventory, and billing.  End user They use the data for queries, reports and some of them update the database content. Database system 18
  • 19. Exercise 1.1 Indicate which type of user would perform the following functions for a payroll system in a large company: A. Write an application program to generate and print the checks. B. Change the address in the database for an employee who has moved. C. Create a new user account for a newly hired payroll clerk Database system 19
  • 20. RDBMS  Relational Database Management System (RDBMS) – Relational Database is a collection of relations (table) Oracle, SQL Server, DB2, My SQL,… User tables Data dictionary Database system 20
  • 21. Sample of Relational Database Index 199011913 19959999 19860001 19901913 19911123 19959999 [EMPLOYEE table] colum Index n Hire_ Serial_ [DEPARTMENT table] Emp_Name Salary Dept_No Year No Dept_No Department Area 1990 1913 Pich Oudam 180000 5648 Row 5648 Systems P.P Prum Chan Dara 4327 Personnel KD 1987 0042 200000 4327 2271 General affairs KP 1992 7699 Keo Rithy 190000 2271 0381 Sales KK . . . . . . . . . . . . . . . . . . . . . . . . Field Database system 21
  • 22. Database Architecture  Single tier Architecture  Two-tier Architecture  Three-tier Architecture Database system 22
  • 23. Single tier a. Single tier: DBMS All on one machine Software Access by terminals Database Database system 23
  • 24. Client/Server (Two tier ) Front-End/Client b. Two-Tier: Application #1 Server with many clients Application #2 DBMS Database Server containing Software centralized shared data Application #3 DBMS manages data resources like an operating system manages hardware resources Database system 24
  • 25. Three-tier architecture Front-End/Client Front-End/Client Application Application #3 #1 DBMS I DBMS II Server Server Software Software Middleware Applicatio4 Application #3 #2 Database Database c. Three-tier: Two kings of DBMS Connected by Middleware Database system 25
  • 26. Three-tier architecture Also call Distributed Systems Solutions are distributed between client PC’s and one or more servers. Database system
  • 27. Exercise 1.2 Specify whether each system would be single-tiered, two- tiered, or three-tiered. a. The Happy Nights motel chain allows local managers to purchase a franchise. They can install and use the DBMS of their choice for their reservation system. The only requirement is that they be able to connect and communicate with the central office’s system. b. The Sticky Wicket Company has home offices in Detroit and branches in Chicago and Baltimore. The inventory and parts database is distributed with each branch keeping its own inventory. One central DBMS located in Detroit allows instant ordering of supplies through the central office. Database system 27

Editor's Notes

  1. Lecture by Mr. Prum Chan Samedy
  2. Lecture by Mr. Prum Chan Samedy
  3. Lecture by Mr. Prum Chan Samedy
  4. Lecture by Mr. Prum Chan Samedy
  5. Lecture by Mr. Prum Chan Samedy
  6. Lecture by Mr. Prum Chan Samedy Let us consider the case of a retail store that is trying to increase sales. Some of the data available includes sales levels for the last 36 months, advertising expenses, and customer comments from surveys. By itself, this data may be interesting, but it must be organized and analyzed to be useful in making a decision. For example, a manager might use economic and marketing models to forecast patterns and determine relationships among various advertising expenses and sales. The resulting information (presented in equations, charts, and tables) would clarify relationships among the data and would be used to decide how to proceed It requires knowledge to determine how to analyze data and make decisions.
  7. Lecture by Mr. Prum Chan Samedy
  8. Lecture by Mr. Prum Chan Samedy A database management system (DBMS) is a collection of programs that enables users to create and maintain a database. The DBMS is hence a general-purpose software system that facilitates the processes of defining, constructing, and manipulating databases for various applications. Defining a database involves specifying the data types, structures, and constraints for the data to be stored in the database. Constructing the database is the process of storing the data itself on some storage medium that is controlled by the DBMS. Manipulating a database includes such functions as querying the database to retrieve specific data, updating the database to reflect changes in the miniworld, and generating reports from the data It is not necessary to use general-purpose DBMS software to implement a computerized database. We could write our own set of programs to create and maintain the database, in effect creating our own special-purpose DBMS software. In either case—whether we use a general-purpose DBMS or not—we usually have to employ a considerable amount of software to manipulate the database. We will call the database and DBMS software together a database system.
  9. Lecture by Mr. Prum Chan Samedy Metadata is used to facilitate the understanding, characteristics, and management usage of data. The metadata required for effective data management varies with the type of data and context of use. In a library, where the data is the content of the titles stocked, metadata about a title would typically include a description of the content, the author, the publication date and the physical location. Examples of Metadata Camera In the context of a camera, where the data is the photographic image, metadata would typically include the date the photograph was taken and details of the camera settings (lens, focal length, aperture, shutter timing, white balance, etc.). Digital Music Player On a digital portable music player, the album names, song titles and album art embedded in the music files are used to generate the artist and song listings, and are considered the metadata. Information system In the context of an information system, where the data is the content of the computer files, metadata about an individual data item would typically include the name of the field and its length. Metadata about a collection of data items, a computer file, might typically include the name of the file, the type of file and the name of the data administrator.
  10. Lecture by Mr. Prum Chan Samedy
  11. Lecture by Mr. Prum Chan Samedy
  12. Lecture by Mr. Prum Chan Samedy For a small personal database, one person typically defines, constructs, and manipulates the database. However, many persons are involved in the design, use, and maintenance of a large database with a few hundred users.
  13. Lecture by Mr. Prum Chan Samedy In this section we identify the people whose jobs involve the day-to-day use of a large database; we call them the "actors on the scene. Database Administrator: In any organization where many persons use the same resources, there is a need for a chief administrator to oversee and manage these resources. In a database environment, the primary resource is the database itself and the secondary resource is the DBMS and related software. Administering these resources is the responsibility of the database administrator (DBA). The DBA is responsible for authorizing access to the database, for coordinating and monitoring its use, and for acquiring software and hardware resources as needed. The DBA is accountable for problems such as breach of security or poor system response time. In large organizations, the DBA is assisted by a staff that helps carry out these functions. Database Designer: Database designers are responsible for identifying the data to be stored in the database and for choosing appropriate structures to represent and store this data. These tasks are mostly undertaken before the database is actually implemented and populated with data. It is the responsibility of database designers to communicate with all prospective database users, in order to understand their requirements, and to come up with a design that meets these requirements. In many cases, the designers are on the staff of the DBA and may be assigned other staff responsibilities after the database design is completed.
  14. Lecture by Mr. Prum Chan Samedy Database designers typically interact with each potential group of users and develop a view of the database that meets the data and processing requirements of this group. These views are then analyzed and integrated with the views of other user groups. The final database design must be capable of supporting the requirements of all user groups. End user: The person that use the database for querying, updating, generating information, etc. System Analysts and Application Programmers (Software Engineers) System analysts determine the requirements of end users, especially naive and parametric end users, and develop specifications for canned transactions that meet these requirements. Application programmers implement these specifications as programs; then they test, debug, document, and maintain these canned transactions. Such analysts and programmers (nowadays called software engineers ) should be familiar with the full range of capabilities provided by the DBMS to accomplish their tasks.
  15. Lecture by Mr. Prum Chan Samedy
  16. Lecture by Mr. Prum Chan Samedy
  17. Lecture by Mr. Prum Chan Samedy
  18. Lecture by Mr. Prum Chan Samedy
  19. Lecture by Mr. Prum Chan Samedy
  20. Lecture by Mr. Prum Chan Samedy
  21. Lecture by Mr. Prum Chan Samedy The three-tier system adds middleware, which provide a way for clients of one DBMS to access data from another DBM. Figure in slide 48,49 and this slide illustrates the difference between single-tier, two-tier and three-tier software system
  22. Lecture by Mr. Prum Chan Samedy
  23. Lecture by Mr. Prum Chan Samedy Then we presented a list of capabilities that should be provided by the DBMS software to the DBA, database designers, and users to help them design, administer, and use a database: • Controlling redundancy. • Restricting unauthorized access. • Providing persistent storage for program objects and data structures. • Permitting inferencing and actions by using rules. • Providing multiple user interfaces. • Representing complex relationships among data. • Enforcing integrity constraints. • Providing backup and recovery.