Information storage: Introduction of database 10/7/2004 Xiangming Mu.

Slides:



Advertisements
Similar presentations
Chapter 2 Database System Concepts and Architecture
Advertisements

Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
--What is a Database--1 What is a database What is a Database.
1 Chapter 2 Database System Concepts and Architecture.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
ICS (072)Database Systems Background Review 1 Database Systems Background Review Dr. Muhammad Shafique.
Databases and Database Users
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Overview of Database Languages and Architectures.
Database System Concepts and Architecture Dr. Ali Obaidi.
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 2 Database System Concepts and Architecture
Chapter One Overview of Database Objectives: -Introduction -DBMS architecture -Definitions -Data models -DB lifecycle.
Introduction to Data bases concepts
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction.
Database System Concepts and Architecture Lecture # 3 22 June 2012 National University of Computer and Emerging Sciences.
1 CSE 480: Database Systems Lecture 1: Introduction Reference: Read Chapters 1 & 2 of the textbook.
Database System Concepts and Architecture
Chapter 2 CIS Sungchul Hong
CSC271 Database Systems Lecture # 4.
Introduction to Accounting Information 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 Lecture # 2 21 June 2012 National University of Computer and Emerging Sciences.
Database System Concepts and Architecture
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
2. Database System Concepts and Architecture
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Ihr Logo Fundamentals of Database Systems Fourth Edition El Masri & Navathe Chapter 2 Database System Concepts and Architecture.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Instructors: Churee Techawut Introduction to Database System Chapter 1 CS (204)321 Database System I.
Database System Concepts and Architecture. Relational Model Concepts relational model represents the database as a collection of relations. Each relation.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
Copyright © 2007 Ramez Elmasri and Shamkant B. Navathe Slide 2- 1.
Chapter 2 Database System Concepts and Architecture Dr. Bernard Chen Ph.D. University of Central Arkansas.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture Presented & Modified.
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
DBMS_Week 3-4 DBMS. Three-Schema Architecture – Internal schema (one view) describes physical storage structures access paths, indexes used Typically.
DataBase System Concepts and Architecture
Database Design Chapter-2- Database System Concepts and Architecture
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
1 Chapter 2 Database Environment Pearson Education © 2009.
2) Database System Concepts and Architecture. Slide 2- 2 Outline Data Models and Their Categories Schemas, Instances, and States Three-Schema Architecture.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
1 Database Design Chapter-2- Database System Concepts and Architecture Reference: Prof. Mona Mursi Lecture notes.
Introduction: Databases and Database Systems Lecture # 1 June 19,2012 National University of Computer and Emerging Sciences.
ISC321 Database Systems I Chapter 2: Overview of Database Languages and Architectures Fall 2015 Dr. Abdullah Almutairi.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Fundamental of Database Systems
Chapter (2) Database Systems Concepts and Architecture Objectives
Databases (CS507) CHAPTER 2.
Databases and DBMSs Todd S. Bacastow January 2005.
Architecture & Data Models
Chapter (2) Database Systems Concepts and Architecture Objectives
Chapter 2 Database Environment.
Database System Concepts and Architecture
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Chapter 2 Database Environment.
Chapter 2: Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data, Databases, and DBMSs
Data Model.
Database System Concepts and Architecture
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Information storage: Introduction of database 10/7/2004 Xiangming Mu

What is database system Database a collection of related data represents some aspect of the real world organized data for retrieval, maintenance has intended group of users Database Management System (DBMS) a collection of programs for creating and using a database (a software package) defines a DB: data type, structure, constraints constructs a DB: storing the data manipulates a DB: query, update, report Database System A Database + a DBMS

Data Models Conceptual (high-level) Data Model concepts: entity, attribute, relationship Entity-Relationship model (DBMS-independent) Representational (implementation-level) data represented by record structure i.e.) relational, network, hierarchical Physical (low-level) describes how data is stored in the disk

DB Schema vs. DB State Database Schema (intension) description of the database is specified during database design Database State (extension of the schema) current state of the database: a snapshot; it is an actual data instances (occurrences) in a DB changes over time by update initially, a database is empty state with no data then, populate (load) the database with data DBMS checks every state of the database does it satisfy the structure and constraints specified in the schema?

Three-Schema Architecture 1. An Internal Schema (internal level) physical storage structure, access paths uses a physical data model 2. A Conceptual Schema (conceptual level) describes whole database structure data types, constraints, user operations hides the details of storage structure uses conceptual/implementation data models 3. Multiple External Schemas (external level) each describes a part of the database for a particular user group and hides the rest support multiple views of a database same data model as the conceptual schema

Three-Schema Architecture (cont’) Mappings for multi-level DBMS –to transform a request specified at one level into the request at another level –access: external  conceptual  internal  DB –retrieve: DB  internal  conceptual  external Three-Schema Architecture advantage: true data independence disadvantage: overhead cost of mappings

DBMS Languages Data Definition Language (DDL) to define DB schemas VDL (View Definition Lang.): external schema SDL (Storage Definition Lang.): internal schema Data Manipulation Language (DML) to specify database requests: update, retrieval high-level DML: which data to retrieve low-level DML: how to retrieve it

Data Models Overview Relational Data Model database represented as a collection of tables each table stored as a separate file uses higher-level query language (SQL) Object Data Model database defined in terms of objects, their properties, and their operations classes: objects with same structure & behavior methods specify operations of each class Others Object-relational, hierarchical tree, XML, etc…

Conceptual Data Models Conceptual design of database applications, and DBMS-independent Including database structure and constraints --- Entity-Relationship (ER) Independent from its implementations (on representation level and physical level)

E-R Model Representation data as entities, attributes, and relationships E-R schema diagram (example)example Entity a "thing" (object, event) in the real world physical vs. conceptual existence: car vs. job has a set of properties to completely describe it Need a primary “key” attribute to identify a unique record of the entity Attributes –an entity has a value for each of its attributes

Relationship Relates two or more distinct entities with a specific meaning (example)example Relationship Instance an association among at least two entities belonging to one or more entity types ‘John works in Accounting Department’ Cardinality of a Relationship 1:1 (each entity can only participate once) 1:N (one entity can participate once, the other can participate many times) M:N (each entity can participate many times)

What is SQL SQL Structured Query Language, for commercial relational DBMSs a DBMS may have its own extensions SQL can create a relational DB schema create/modify/delete tables extract information from the DB (query) define views on the database specify constraints, security, authorization be embedded in a general-purpose programming language (C, PASCAL, Java)

SQL Features Data Definition Language (DDL) –allows database tables to be created or deleted. CREATE TABLE - creates a new database table ALTER TABLE - alters (changes) a database table DROP TABLE - deletes a database table Data Manipulation Language (DML) –modify and query database states –describes which data to retrieve, not how to retrieve it SELECT - extracts data from a database table UPDATE - updates data in a database table DELETE - deletes data from a database table INSERT INTO - inserts new data into a database table

An SQL example  SQL Query Example retrieve the names of all employees who work for the department number 4 SELECT FNAME, LNAME FROM EMPLOYEE WHERE DNO = 4;