1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.

Slides:



Advertisements
Similar presentations
Data Modeling and Database Design Chapter 1: Database Systems: Architecture and Components.
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Adapted from: ©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Fly-over Introduction Purpose of Database Systems View of Data Data.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Database Management Systems Purpose of Database Systems View of Data.
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.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Lecture Two Database Environment Based on Chapter Two of this book:
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
Introduction to DBMS Purpose of Database Systems View of Data
Introduction to Data bases concepts
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Temple University – CIS Dept. CIS616– Principles of Database Systems V. Megalooikonomou Introduction (based on notes by Silberchatz,Korth, and Sudarshan)
ADVANCED DATABASES WITH ORACLE 11g FOR ADDB7311 LEARNING UNIT 1 of 7.
1 Introduction to databases concepts CCIS – IS department Level 4.
Database System Concepts, 6 th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
Introduction to Databases
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Database Technical Session By: Prof. Adarsh Patel.
CST203-2 Database Management Systems Lecture 2. One Tier Architecture Eg: In this scenario, a workgroup database is stored in a shared location on a single.
Database System Concepts and Architecture
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Concepts and Terminology Introduction to Database.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Database Environment Session 2 Course Name: Database System Year : 2013.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
Chapter 1: Introduction
1 Chapter 2 Database Environment Pearson Education © 2009.
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Database System Concepts Introduction Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Transaction.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
RELATIONAL DATABASE MANAGEMENT SYSTEM - I Subject code : BCA-12 and PGDCA 1.
©Silberschatz, Korth and Sudarshan 1.1 Database System Concepts قواعد البيانات Data Base قواعد البيانات CCS 402 Mr. Nedal hayajneh E- mail
CHAPTER 1: INTRODUCTION Purpose of Database Systems View of Data Data Models Data Definition Language Data Manipulation Language Storage Management Database.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
Database System Concepts, 5th Ed. ©Silberschatz, Korth and Sudarshan See for conditions on re-usewww.db-book.com Chapter 1: Introduction.
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 2 Database Environment.
Chapter 1: Introduction
Chapter 4 Relational Databases
Chapter 2 Database Environment.
Introduction to Database Systems
Chapter 2 Database Environment Pearson Education © 2009.
Data Model.
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1: Introduction
UNIT-I Introduction to Database Management Systems
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 1: Introduction
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 1: Introduction
Presentation transcript:

1 Chapter 1 Introduction

2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process of defining, constructing, and manipulating databases for various applications. n Definition A database is a collection of related data. n Definition Data are known facts that can be recorded and that have implicit meaning. n Definition File processing systems are business computer systems which store groups of records in separate files & used to process business records & produce information.

3 Introduction DBMS File Processing Systems - Data redundancy & inconsistency Reduced by ensuring a physical piece of data is available to all programs Data is often duplicated causing higher storage and access cost, poor data integrity, and data inconsistency - Accessing dataAllow flexible access to data (e.g., using queries for data retrievals) Allow pre-determined access to data (i.e., complied programs); application programs are dependent on file formats - Concurrent accessDesigned to coordinate multiple users accessing the same data at the same time Designed to allow a file to be accessed by two programs concurrently only if both programs have read-only access to the file - Data security & integrity High, enforced Loose, not enforced

4 Data Abstraction n Provides an abstract view of data n Physical level: the lowest level of abstraction describes the storage structure of data. n Conceptual level: the next-higher level of abstraction describes the logical structure of the database. n View level: the highest level of abstraction describes part of the entire database. Many views are provides for the same database.

5 Database Terminology n Database Schema or Conceptual View: describes the overall logical structure of the entire database n Database Instance: describes the content of the database n Schema = Type, Instance = Value of a variable

6 Data Independence n The capacity to change the schema definition at one level without having to change the schema definition at the next higher level  Physical data independence: capacity to change the physical schema without having to rewrite the application programs  Logical data independence: capacity to change the conceptual schema without having to rewrite the application programs  logical data independence is more difficult to achieve than physical data independence

7 Data Models n Describe relationships among data, data semantics, integrity, and semantic constraints at the conceptual and view levels n I. Object-Based Logic Models  DB is structured in variable-length records  Provide flexible structuring capabilities  Allow explicit specifications of data constraints  Widely used data models: Entity-Relationship and Object-Oriented n II. Record-Based Logical Models  DB is structured in fixed-format records of different types  Three widely used data models: Relational, Hierarchical, and Network n II. Semi-Structured Data Model  Data items of the same type can have different sets of attributes  Widely used data model: XML (Extensible Markup Language)

8 Entity-Relationship (E-R) Model n An object-based Model n A graphical structure (Chapter 7) n Widely used in database design n Consists of real world objects called entities and relationships among entities n An entity is an distinguishable object with a set of attributes n Entity set is a set of entities of the same type n Relationship set is a set of relationships of the same type n Mapping cardinalities represent the associations among different entities

9 An Entity-Relationship Diagram FACULTY STUDENT ID# FNAME DEPT ADDR SNAME HAS_TAKEN MAJOR ADVISES COURSE IS_TAKING COURSE#CRHRS 1 n n n mm An Entity Attribute A (Binary) Relationship Mapping Cardinalities Key Attribute

10 An Entity-Relationship Diagram FACULTY STUDENT ID# FNAME DEPT ADDR SNAME HAS_TAKEN MAJOR ADVISES COURSE IS_TAKING COURSE#CRHRS

11 n An object-based Model  Object identity (object-based) vs. value identity (record-based) n A collection of objects with unique identities  Objects can be simple, complex, or made up of other objects n Objects contain methods, i.e., codes operated on objects  An operation/function can be performed on objects of particular classes  Provide “public interface” for objects of a particular class n Classes consist of objects  Correspond to abstract data type (ADT)  Users can define their own classes  Only way to operate on an object by means of operators defined n Message passing for accessing data in different objects  Apply a given method to a given object by sending a message The Object-Oriented Model

12 Object-Oriented Database Systems city street stNumber Salary Address SSNo EmpName Employee PersonName String Ray String Ross SmallInteger HomeAddress SmallInteger 1055 String SmallInteger Alameda Gresham first last Figure. An employee object.

13 The Relational Model n A record-based Model n Data are organized and stored into 2-dimensional tables (called relations) n Flexible to use and easy to understand n A relational database schema consists of a number of relation schemas of the form R(A 1, A 2, …, A n ), where R is a relation name and A i, 1 < i < n, is an attribute name.

14 The Relational Model Relational term Informal equivalence Relation Tuple Cardinality Attribute Degree Domain Primary Key Table Row/Record # of rows Column/Field # of columns Set of legal values Unique Identifier

15 The Relational Database Model SNAMESTATUSCITY S1Smith Jones Blake Clark Adams London Paris London Athens S2 S3 S4 S5 Supplier# Supplier London Paris etc. Supplier#NAME STATUSCITY Primary Key CardinalityCardinality Degree Relation Tuples Attributes Domains

16 Data Definition Languages (DDL) & Data Manipulation Languages (DML) n DDL  Declares the DB schema and compiles the schema into tables n DML  Access/Manipulate (retrieve, insert, delete, & modify) the DB Procedural (or descriptive): specify what is needed and how to get it Non-procedural (or declarative): specify what is needed but not how to get it

17 Overall System Structure