T1 Relational Database

19
Relational Database Hilda Widyastuti Semester 1/2014-2015 Informatic Technique Study Program, Batam State Polytechnic

description

Database

Transcript of T1 Relational Database

  • Relational Database

    Hilda Widyastuti

    Semester 1/2014-2015

    Informatic Technique Study Program, Batam State Polytechnic

  • Overview

    What is database ?

    What is database system?

  • WHAT IS DATABASE ?

  • Database illustration (filling cabinet)

  • Database illustration (filling cabinet)

    What can you do with filling cabinet ?

    Store file on folder

    Give numbering with certain pattern

    Another activity? Another activity?

  • Introduction to databaseData

    * facts or information used usually to calculate, analyze, or plan something

    * information that is produced or stored by a computer

    Base

    something (such as a group of people or things) that provides support for a place, business, etc.

    Database

    a usually large collection of data organized especially for rapid search and retrieval (as by a computer)

  • Database (DB) Operation

    Create DB

    Drop DBCreate table

    Drop Query Update

    Drop table

    Query Update

    Delete

  • Database Objectives

    Speed Save, manipulate, and retrieve data easily

    Space Efficiency

    Reduce redundancy use relation

    Accuracy Use data constraint, unique dataAccuracy Use data constraint, unique data

    Availability Available to be accessed

    Completeness If DB is not complete, we can add data or

    data structure

    Security User management

    Sharability Many users can share DB

  • Database Application Sample

    Reservation

    Inventory

    Customer care

    Banking, etc

  • WHAT IS DATABASE SYSTEM?

  • Database System

    System : a group of related parts that move or work together

    Database system contains hardware, operating system, database, DBMS, user, another software

    Example :

  • DBMS

    Software that uses a standard method of cataloging, retrieving, and running queries on data.

    Manages incoming data, organizes it, and provides ways for the data to be modified or extracted by users or other programs

    Example : MySQL, PostgreSQL, Microsoft Access, SQL Server, Oracle, etc

  • Relational Database (RDB) Concept

    collective set of multiple data sets organized by tables, records and columns.

    establish a well-defined relationship between database tables

    tables communicate and share information, which facilitates data searchability, which facilitates data searchability, organization and reporting

    use structured query language (SQL)

    RDB is derived from the mathematical function concept of mapping data sets

  • Relational Database Sample

  • References

    1. Fathansyah, 2012, Basis data edisi Revisi, Penerbit Informatika.

    2. Gerakansadararsip.wordpress.com

    3. Gelaskosongku.blogspot.com

    4. http://www.merriam-webster.com

    5. www.techterms.com

    6. http://www.techopedia.com

    7. http://en.wikipedia.org/wiki/Database

  • Task 1

    Create small group (3 person)

    Discuss a database system in real world. Identify their components, include :

    Description (diagram)

    Hardware and operating system Hardware and operating system

    Tables in database

    DBMS

    User

    Other software involved

  • Homework (individual)

    1. What is Entity Relationship (ER) model?

    2. What is entity definition?

    3. What is attribute definition?

    a. Give sample about simple attribute and a composite attribute

    b. Give sample about single valued attribute and b. Give sample about single valued attribute and multi valued attribute

    c. Give sample about derived attribute

    4. What is primary key?

    5. What is relationship definition?

  • Homework (individual)

    6. Explain 4 types of relationship :

    a. one-to-one

    b. one-to-many

    c. many-to-one

    d. many-to-many

    7. Make illustration to describe 4 types of relationship 7. Make illustration to describe 4 types of relationship in question 6 !

    Write or type your answer in a paper and submit to your teacher next week!

  • Success does not depend on your aptitude or your altitude. It depends on your attitude