01 Db Introduction

Embed Size (px)

Citation preview

  • 8/4/2019 01 Db Introduction

    1/26

    Introduction:

    What is a Data Base?

    Lecture: Fundamentals of Data Base

    SystemsAbdul Rahman Sherzad

    1

  • 8/4/2019 01 Db Introduction

    2/26

    Brainstorming

    In what context have you heard of the term

    data base or database?

    Have you ever used a database system?

    In which situations in our everyday life do we

    interact with data base systems?

    2

  • 8/4/2019 01 Db Introduction

    3/26

    Database System Application

    Banking:

    For customer information, accounts, and loans,

    and banking transactions.

    Universities:

    For student information, course registrations, and

    grades.

    Sales:

    For customer, product, and purchase information.

    3

  • 8/4/2019 01 Db Introduction

    4/26

    Database System Application

    Airlines:

    For reservations and schedule information.

    Credit card transactions:

    For purchases on credit cards and generation ofmonthly statements printed record of accountactivity.

    Human resources: For information about employees, salaries, payroll

    taxes and benefits, and for generation ofpaychecks salary voucher.

    4

  • 8/4/2019 01 Db Introduction

    5/26

    Database System Application

    Telecommunication: For keeping records of calls made, generating

    monthly bills, maintaining balances on prepaid callingcards, and storing information about the

    communication network. Finance:

    For storing information about sales, and purchases offinancial instruments such as stocks and bonds.

    Manufacturing: For management of supply chain and for tracking

    production of items in factories, inventories of itemsin warehouses/stores, and orders for items.

    5

  • 8/4/2019 01 Db Introduction

    6/26

    Brainstorming

    Summary

    Databases play a critical role in almost all

    areas in which computers are used!

    6

  • 8/4/2019 01 Db Introduction

    7/26

    What is Database?

    Definition

    Elmasri & Navathe (2007):

    A database is a collection of related data.

    By data, we mean known facts that can be

    recorded and that have implicit meaning.

    7

  • 8/4/2019 01 Db Introduction

    8/26

    What is Database?

    Definition

    Properties of a database:

    A database represents some aspect of the real

    world, sometimes called mini-world or the

    universe of discourse (UoD).

    Changes to the mini-world are reflected in the

    database.

    8

  • 8/4/2019 01 Db Introduction

    9/26

    What is Database?

    Definition

    Properties of a database:

    A database is a logically coherent consistent or

    logical collection of data with some inherent

    meaning.

    A random assortment of data cannot correctly be

    referred to as a database.

    9

  • 8/4/2019 01 Db Introduction

    10/26

    What is Database?

    Definition

    Properties of a database:

    A database is designed, built, and populated with

    data for a specific purpose.

    It has an intended group of users and some

    preconceived applications in which these users

    are interested.

    10

  • 8/4/2019 01 Db Introduction

    11/26

    Databases

    Size and Complexity

    A database can be of any size and complexity

    Example for a small database:

    Personal DB with addresses with only a few hundred

    records (each with a simple structure)

    Example for a large database:

    Amazon.com: with more than 20 million of books, CDs,eBooks, magazines, journals and etc. In a DB with the

    size of 2 terabytes

    11

  • 8/4/2019 01 Db Introduction

    12/26

    Definition:

    Database Management System

    A Database Management System (DBMS) is a

    collection of interrelated data and set of

    programs to access those data.

    The collection of data, usually referred to as

    the database, contains information related to

    an enterprise.

    12

  • 8/4/2019 01 Db Introduction

    13/26

    Definition:

    Database Management System

    Elmasri & Navathe (2007):

    A database management system (DBMS) is acollection of programs that enables users to

    create and maintain a database.

    13

  • 8/4/2019 01 Db Introduction

    14/26

    Definition:

    Database Management System

    A DBMS fulfills several purposes:

    defining databases constructing databases

    manipulating databases

    sharing databases among various users andapplications

    14

  • 8/4/2019 01 Db Introduction

    15/26

    DBMS

    MS Access

    MySQL (Open Source)

    SQL-Server (Microsoft)

    Oracle

    PostgreSQL

    FoxPro

    SQLite

    15

  • 8/4/2019 01 Db Introduction

    16/26

    Definition:

    Application Program

    Elmasri & Navathe (2007), p. 6:

    An application program accesses the database

    by sending queries or requests to the DBMS.

    A query (question, inquiry) is the interaction with the

    database, e.g. retrieving or manipulating data.

    16

  • 8/4/2019 01 Db Introduction

    17/26

    Definition:

    Database System

    The database, the DBMS software, and the

    application program together are called adatabase system.

    17

  • 8/4/2019 01 Db Introduction

    18/26

    Overview

    18

  • 8/4/2019 01 Db Introduction

    19/26

    Example of a database system

    19

  • 8/4/2019 01 Db Introduction

    20/26

    Actors around Database

    Systems

    What roles do people take around adatabase system?

    20

  • 8/4/2019 01 Db Introduction

    21/26

    Actors around Database

    Systems

    What roles do people take around a

    database system?

    End users DB designers

    DB administrators

    Application programmers

    21

  • 8/4/2019 01 Db Introduction

    22/26

    Actors around Database

    Systems

    End users:

    the people who will use the DB when it is finished

    normally little technical knowledge use of the DB

    22

  • 8/4/2019 01 Db Introduction

    23/26

    Actors around Database

    Systems

    Database Designers:

    the database designers conceptually design and

    implement the DB

    analyze requirements for the DB

    gathering of information about the application field

    conceptual schema. (conceptual = of an idea or

    concept)

    choice of DBMS

    23

  • 8/4/2019 01 Db Introduction

    24/26

    Actors around Database

    Systems

    Database Administrators:

    when the database is designed and implemented

    it is handed over to the DB administrator person responsible for the DB during its lifetime

    management of user accounts, hardware

    resources, backups, etc.

    24

  • 8/4/2019 01 Db Introduction

    25/26

    Actors around Database

    Systems

    Application Programmers:

    programmers that write programs that use the DB

    programmers of a graphical user interface (GUI)

    for the database

    25

  • 8/4/2019 01 Db Introduction

    26/26

    Thats all for today

    26