Introduction to Database Technology

Slides:



Advertisements
Similar presentations
Ch1: File Systems and Databases Hachim Haddouti
Advertisements

Introduction to Databases Transparencies
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
Lecture Two Database Environment Based on Chapter Two of this book:
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1- 1.
Chapter 1 Introduction to Databases
Introduction to Data bases concepts
Module Title? DBMS Introduction to Database Management System.
Database Technical Session By: Prof. Adarsh Patel.
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
Database Environment Session 2 Course Name: Database System Year : 2013.
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
1 Chapter 2 Database Environment Pearson Education © 2009.
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction and Conceptual Modeling.
Postgraduate Module Enterprise Database Systems Technological Educational Institution of Larisa in collaboration with Staffordshire University Larisa
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Fundamental of Database Systems
Introduction to Databases Transparencies
Introduction to Databases Transparencies
Introduction to DBMS Purpose of Database Systems View of Data
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
國立臺北科技大學 課程:資料庫系統 Chapter 2 Database Environment.
CS4222 Principles of Database System
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
REV 00 Chapter 2 Database Environment DDC DATABASE SYSTEM.
Database Management.
Datab ase Systems Week 1 by Zohaib Jan.
Chapter 2 Database Environment.
An Introduction to database system
Chapter 1: Introduction
“ Database (DB) and Database Management System (DBMS) “
Database Management:.
Chapter 1: Introduction
Database Management System
Introduction to Databases Transparencies
Introduction to Databases
Introduction to Databases
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2: Database System Concepts and Architecture
Introduction to Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Basic Concepts in Data Management
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Dr. Awad Khalil Computer Science Department AUC
Introduction to Databases
Database Environment Transparencies
TOPIC 1 INTRODUCTION TO DATABASE TECHNOLOGY Dr. WENNY RAHAYU
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Database (DB) and Database Management System (DBMS)
Introduction to Databases
Chapter 1: Introduction
UNIT-I Introduction to Database Management Systems
Introduction to Databases Transparencies
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Database System Concepts and Architecture
Dr. Awad Khalil Computer Science Department AUC
Terms: Data: Database: Database Management System: INTRODUCTION
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 1: Introduction
Presentation transcript:

Introduction to Database Technology CSE2DBF – CSE4DBF Introduction to Database Technology 27/02/2017 Reading: Elmasri and Navathe, “Fundamentals of Database Systems, Chapters 1 & 2”, Pearson, 2017.

Why use a Database? Imagine owning a business, say a DVD rental agency, what sort of information, that is data, would you like to keep? Current stock: titles, manufacturers Customer details Current loans, past loans, hold requests (who by?, what of?) Staff details Suppliers: DVDs, snacks Accounts, income, outgoings, overdue fines How would you manage this information? Create a database that stores the information and tracks the business transactions.

Why use a Database? So, you have a database. What questions might you ask the database? How many videos are overdue? Do we have enough copies of The Hobbits? Can we pay the staff this week? Which customers haven't been in for a while? We should send them this special offer. These questions can be translated into queries, that is, written in a form that a database system can understand.

Why use a Database? To have a good database: As the business owner, you need to have clear idea about your business, in particular what information that you need to store (requirements). Information is described by a model, which (as for queries) should be written in a language the database understands. The stored information should be correct and sensible.

Why use a Database? Database usage: Retail information. Hospital records: treatments available, per-­patient information, per-­doctor information, ward and bed availability, billing data. Mass storage: Weather records: thousands of sites, many observations per day, many values per observation, many years of records. Satellite images. Telephone records: who to, who from, what route, how long, what costing? Databases provide a uniform framework for handling these very different activities.

What is a Database? “ A shared collection of related data designed to meet the information needs of an organisation.”

Database vs Database System A Database is: A representation of some aspect of the real world; or perhaps, a collection of data elements (facts) representing real­ world information. Logically coherent and internally consistent. Designed, built, and populated with data for a specific purpose. A Database System is: A software system for managing databases: definition and creation, population, querying. These terms are used somewhat interchangeably - don't get confused.

A File System Personnel Dept. Sales Dept. Accounting Dept. Employees Accounts Customers Inventory Sales

A Database System Database DBMS Personnel Dept. Employees Customers Sales Inventory Accounts Database Personnel Dept. DBMS Sales Dept. Accounting Dept.

An Example of a Database STUDENT Name StudNumber Class Major Smith 17 1 CS Brown 8 2 SUBJECT SubjName SubjCode CPoints Dept Intro to Computer Science CS001 15 CSCE Data Structures CS002 Discrete Mathematics MAT001 MATH Databases CS003 Calculus and Linear Algebra MAT002 STUDENT_RESULT StudNum SubjCode Grade 17 CS001 B MAT001 C 8 A MAT002 PREREQUISITE SubjCode PrereqCode CS002 CS001 CS003 MAT002 MAT001

Benefits of a Database Approach a. To control data redundancy Data redundancy leads to three major problems: Duplicate effort Waste of storage Inconsistency of data However, please note that in Relational systems redundancy will still exist as some fields need to be duplicated to provide relationships, but such redundancy is controlled and kept to a minimum.

Benefits of a Database Approach Example: Data Redundancy : Duplicate Effort and Waste of Storage (2) Data Redundancy: Leads to Inconsistencies STUDENTGRADE StudentNumber StudentName SubjectCode Grade 17 Smith CS001 B MAT001 C 8 Brown A CS002 MAT002 STUDENTGRADE StudentNumber StudentName SubjectCode Grade 17 Brown CS001 B

Benefits of a Database Approach b. Data Integrity Most databases applications have certain Integrity constraints that must hold for the data. A DBMS provides capabilities for defining and enforcing these constraints. The simplest type of integrity constraint involves specifying a data type for each data item. c. Restricting Unauthorised Accesss A DBMS provides a security and authorisation subsystem, which the DBA uses to create accounts and to specify account restrictions. The DBMS should then enforces these restrictions automatically.

Benefits of a Database Approach d. Programming Advantages Persistent storage for program Multiple user interface. e. Providing Backup and Recovery If the computer system fails in the middle of a complex update program, the recovery subsystem is responsible for making sure that the database is restored to the state it was in before the program started executing.

DBMS Languages Data Definition Language (DDL) This is used to define the conceptual and internal schemas for a database system. It is not a procedural language, rather a language for describing the types of entities, and the relationships among them in terms of a particular data model. Data Manipulation Language (DML) This is used to manipulate the database, which typically includes retrieval, insertion, deletion, and modification of the data.

Classification of DBMS Based on Data Model Relational (RDBMS) Eg. ORACLE, INFORMIX, ACCESS Network Eg. IDMS (Integrated Database Management systems) Hierarchical Eg. IMS Objected Oriented (OO) DBMS Eg. O2, ObjectStore, Jasmine Based on Number of Users Single User Multiple User Based on ways the database is distributed Centralized Distributed Federated

Summary - Why Database Systems are important The collection of data becomes increasingly important for operational activities/transactions The amount of data to be stored is increasing A good way of managing such data is crucial Database systems help to create an environment in which end-users have better access to better-managed databases support an integrated view of the whole operation of an organisation.

Database Models Next Lecture Readings: Elmasri and Navathe, “Fundamentals of Database Systems, Chapters 3 & 5”, Pearson, 2017