IST 210 1 Databases and DBMSs Todd S. Bacastow January 2005.

Slides:



Advertisements
Similar presentations
Introduction to Databases
Advertisements

Management Information Systems, Sixth Edition
Introduction to Database Management  Department of Computer Science Northern Illinois University January 2001.
Data Management Design
Organizing Data & Information
3-1 Chapter 3 Data and Knowledge Management
Geographic Information Systems
Ch1: File Systems and Databases Hachim Haddouti
Chapter 11 Data Management Layer Design
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Lead Black Slide. © 2001 Business & Information Systems 2/e2 Chapter 7 Information System Data Management.
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
WHAT IS A DATABASE ? a collection of data organized to help easy retrieval & usage.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Management COP4540, SCS, FIU An Introduction to database system.
LECTURE 2 DATABASE SYSTEM CONCEPTS AND ARCHITECTURE.
Database Design and Introduction to SQL
10. Creating and Maintaining Geographic Databases.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
DBMS By Narinder Singh Computer Sc. Deptt. Topics What is DBMS What is DBMS File System Approach: its limitations File System Approach: its limitations.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
311: Management Information Systems Database Systems Chapter 3.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Lead Black Slide Powered by DeSiaMore1. 2 Chapter 7 Information System Data Management.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Relational Database. Database Management System (DBMS)
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Data resource management
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Flat Files Relational Databases
CSE323 การวิเคราะห์และออกแบบระบบ (Systems Analysis and Design) Lecture 12: Data Management Design.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
Chapter 3: Relational Databases
Presentation on Database management Submitted To: Prof: Rutvi Sarang Submitted By: Dharmishtha A. Baria Roll:No:1(sem-3)
Data Resource Management Lecture 8. Traditional File Processing Data are organized, stored, and processed in independent files of data records In traditional.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
Databases and DBMSs Todd S. Bacastow January
Database Management.
An Introduction to database system
Chapter 4 Relational Databases
Database.
Data Model.
DATABASE TECHNOLOGIES
Presentation transcript:

IST Databases and DBMSs Todd S. Bacastow January 2005

IST 210 Evolution

IST 210 Ways of storing data Files (1960) (ancient times) Databases Hierarchical (1970) Network (1970) Relational (1980) Object (1990)

IST 210 File terms Record data items related to a single logical entity (e.g. a student’s information) or row in a table Field a place for a data item in a record (first name field in a student record) or a column in a table File a sequence of records of the same type (the table)

IST 210 File structures 3 Smith Jane A 1 Wood Bob C 2 Kent Chuck B 4 Boone Dan B ID Last First Grade record field A file: “STUDENT”

IST 210 File organization Serial new records appended Sequential records ordered in file, usually according to a numeric key

IST 210 File structures Serial list of entries in which the order of entry into the list determines the order of the list 3 Smith Jane A 1 Wood Bob C 2 Kent Chuck B 4 Boone Dan B ID Last First Grade

IST 210 File structures Search of a simple list entails going through each record until the query is satisfied (linear search), which is inefficient 3 Smith Jane A 1 Wood Bob C 2 Kent Chuck B 4 Boone Dan B ID Last First Grade

IST 210 File structures Sequential list of entries ordered in some way (e.g. numerically or alphabetically) 1 Wood Bob C 2 Kent Chuck B 3 Smith Jane A 4 Boone Dan B ID Last First Grade

IST 210 File structures Search of an ordered sequential list can use a search method 1 Wood Bob C 2 Kent Chuck B 3 Smith Jane A 4 Boone Dan B ID Last First Grade

IST 210 File structures Indexes provide a reference to records based on an index field, which is ordered Boone * Kent * Smith * Wood * 1 Wood Bob C 2 Kent Chuck B 3 Smith Jane A 4 Boone Dan B ID Last First GradeLast Pointer

IST 210 Problems with files Redundancy number of files grows with applications, and data is duplicated Inconsistency data is updated in one application’s files, but not in another’s Maintenance problems changes to data structures mean changes to many programs Difficulty combining data business needs may mean users want data from different applications

IST 210 Other ways to organize Data model A data model is a particular way of conceptually organizing multiple data files in a database Other common models Hierarchical Network Relational Object

IST 210 Network model

IST 210 Network data model Relationships: one-to-one one-to-many many-to-one many-to-many Class Student Grade Instructor ID Department

IST 210 Network data model Advantages flexible, fast, efficient Disadvantages Complex Restructuring can be difficult because of changing all the pointers

IST 210 Hierarchical database model

IST 210 Hierarchical data model Parent-child relationship: one-to-one one-to-many Class Student Grade Instructor ID Department

IST 210 Hierarchical data model Advantages easy to search add new branches easily Disadvantages Must establish the types of search prior to development of the hierarchical structure

IST 210 Summary Hierarchical and network data models have generally been replaced by the relational data model Relational databases dominate the database market Oracle Informix SQL Server DB2 ……..

IST 210 Relational database model Stores both Data about real world objects (entities) in tables Relationships between the tables

IST 210 Relational database Fields (columns) in the table store attributes. Each attribute has a specific domain. Tuples (or records or rows) in the table store information. Each tuple is a unique instance of an object. Tables are composed of a set of tuples. A table is also called a relation.

IST 210 Terms Table A collection of relevant data relating to one type of real world objects. Column A specific place for one type of data relating to one type of real world objects. Domain Set of all possible values for a specific column. Row Collection of data describing one real world object. Primary Key Columns, which are part of the row and uniquely identify any one row.

IST 210 Records Each record represents a logical entity (e.g. a student) Each field represents an attribute of the logical entity 1 Wood Bob C IST357 2 Kent Chuck B IST115 3 Smith Jane A IST357 4 Boone Dan B IST357 ID Last First Grade Class Student

IST 210 Keys Each table has a primary key, one field (or a combination of fields) that has a unique value for each and every record in the table ID is the primary key in this table (two students may share either a last or first name) 1 Wood Bob C IST357 2 Kent Chuck B IST115 3 Smith Jane A IST357 4 Boone Dan B IST357 ID Last First Grade Class Student

IST 210 Relating tables Tables can be related (joined) together based on their keys The idea is to decompose into separate tables with no redundancy and to provide a capability to reassemble with no information loss 1 Wood Bob C IST357 2 Kent Chuck B IST115 3 Smith Jane A IST357 4 Boone Dan B IST357 ID Last First Grade Class Student IST Jones IST Brower IST Fountain Class Name #Stud Instructor

IST 210 Relating tables 1 Wood Bob C IST357 2 Kent Chuck B IST115 3 Smith Jane A IST357 4 Boone Dan B IST357 ID Last First Grade Class Student IST Jones IST Brower IST Mennis Class Name #Stud Instructor Primary key Foreign key

IST 210 Relating tables 1 Wood Bob C IST357 2 Kent Chuck B IST115 3 Smith Jane A IST357 4 Boone Dan B IST357 ID Last First Grade Class Student IST Brower IST Jones IST Jones Class Name #Stud Instructor Jones 332 Brower 517 Instructor Name Office

IST 210 DBMS Schema Ultimately data in databases is stored in files, but their structure is hidden Conceptual Schema External Schema Internal Schema The view on data used by application programs. The logical model of data that is separate from how it is used. The physical storage of data in files and indexes.

IST 210 RDBMS Features Data Definition Language (DDL) Data Manipulation Language (DML) Integrity Constraints Transaction Management Concurrency Security Tuning of Storage

IST 210 Data integrity and validation (Constraints)

IST 210 Relationships Link between entities. A relationship may define constraints. E.G, a person can only have one SSN.

IST 210 Advantages of RDBMS Eliminate unnecessary duplication of data Enforce data integrity through constraints Changes to conceptual schema need not affect external schema Changes to internal schema need not affect the conceptual schema Many tools are available to manage the database

IST 210 Disadvantages of RDBMS To store objects (e.g., drawings) in a relational database, the objects have to be ‘flattened’ into tables e.g., a digital representation of a parcel must be separated from the behaviour of other parcels Complex objects have to be taken apart and the parts stored in different tables When retrieved from the database, the object has to be reassembled from the parts in different tables

IST 210 Other Types of DBMS Object DBMS store objects as objects designed to handle complex nested objects for graphical and multimedia applications Object-relational DBMS hybrid databases that can store data in tables but can also store objects in tables

IST 210 Object DBMS ODBMS have the advantage that objects can be stored directly Object databases are closely linked to programming languages with ways of navigating through the database

IST 210 Summary Common word Textbook word Alternate word Object word TableRelationFile or Data set (old) Object class ColumnAttributeFieldObject field Domain Range of possible values Datatype, subtype RowTupleRecordObject instance Primary key Key of the record Object identifier