Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network.

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Chapter 10: Designing Databases
Database Management3-1 L3 Database Management Santa R. Susarapu Ph.D. Student Virginia Commonwealth University.
Management Information Systems, Sixth Edition
Relational Databases Chapter 4.
ETEC 100 Information Technology
Building a database. Implementation of desirable features Integrity –A field’s validation can be declared when the field is declared. If this validation.
Oct 31, 2000Database Management -- Fall R. Larson Database Management: Introduction to Terms and Concepts University of California, Berkeley School.
Chapter 2 Database Environment.
Chapter 3 Database Management
Database Management: Getting Data Together Chapter 14.
The Relational Database Model:
Introduction to Databases Transparencies
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Features Lecture 2. Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security.
Week 2 Lecture 2 Structure of a database. External Schema Conceptual Schema Internal Schema Physical Schema.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
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.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
CS370 Spring 2007 CS 370 Database Systems Lecture 2 Overview of Database Systems.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Chapter 2 CIS Sungchul Hong
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
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:
Chapter 1 An Overview of Database Management. 1-2 Topics in this Chapter What is a Database System? What is a Database? Why Database? Data Independence.
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.
Storing Organizational Information - Databases
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
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.
INFORMATION MANAGEMENT Unit 2 SO 4 Explain the advantages of using a database approach compared to using traditional file processing; Advantages including.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Data resource management
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
1Mr.Mohammed Abu Roqyah. Database System Concepts and Architecture 2Mr.Mohammed Abu Roqyah.
Database Environment Session 2 Course Name: Database System Year : 2013.
1 Chapter 1 Introduction to Databases Transparencies.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
Desirable features in an information system Integrity Referential integrity Data independence Controlled redundancy Security Privacy.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
1 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data. u A user’s view is immune to changes.
1 Chapter 2 Database Environment Pearson Education © 2009.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
1 10 Systems Analysis and Design in a Changing World, 2 nd Edition, Satzinger, Jackson, & Burd Chapter 10 Designing Databases.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Chapter 2 Database Environment.
Database Management:.
Chapter 4 Relational Databases
Chapter 2 Database Environment.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment.
Data Base System Lecture : Database Environment
Data Model.
Chapter 2 Database Environment Pearson Education © 2014.
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 2 Database Environment Pearson Education © 2009.
Presentation transcript:

Databases Shortfalls of file management systems Structure of a database Database administration Database Management system Hierarchical Databases Network Databases Relational Databases SQL

Desirable Features in an Information System Integrity Data independence Controlled redundancy Security Privacy

Database Definition A computerised record-keeping system. Used by a range of users who have different requirements. –Minimal enquiries. –In-depth updating. –Restructuring. A well-implemented database will have data integrity, data independence, controlled redundancy, security and privacy, for all users.

Uses of a Database Generally used for on-line transaction processing (OLTP) Data warehouses are a hybrid of databases which are used for on-line analytical processing (OLAP)

Structure of a database External Schema Conceptual Schema Internal Schema Physical Schema

External Level Level visible to user Multiple views of the system –e.g. View an order - see limited product and customer information Only the database Administrator may access the whole database at this level

EXTERNAL SCHEMA Each external view is defined by means of an external schema Provides definitions of each external view. Written in a Data Definition Language. individual to the user or user group. accessed through a 3GL, a query language or a special purpose forms or menu-based language

Conceptual level CONCEPTUAL - represents the entire information content of the database Consists of multiple types of conceptual record. This level preserves the data independence of the database. CONCEPTUAL SCHEMA - defines each of the various types of conceptual record, in a conceptual Data Definition Language.

Internal level INTERNAL - a low-level representation of the entire database; it consists of multiple occurrences of multiple types of internal record. It is the stored record, inasmuch as it contains all but the device- specific information on the storage of the database. PHYSICAL - the physical device and block addresses for each of the records.

Mappings Each level maps onto adjoining levels conceptual / internal mapping specifies how conceptual records and fields are represented at the internal level Changes can be made in the internal level without affecting the conceptual level external / conceptual mapping defines the correspondence between an external view and the conceptual view

DBMS - Database Management System software handling access to the database allows both the database administrator and all users the access to the database to which they are entitled

How requests are processed User issues request (e.g. through SQL) DBMS intercepts and analyses request DBMS inspects user's external schema, external to conceptual mapping, conceptual schema, conceptual to internal mapping and the storage structure definition. DBMS executes operations on stored database.

DATABASE ADMINISTRATOR (DBA) Decide on the storage structure and access strategy Liase with the users Define security and integrity checks Define a backup and recovery strategy Monitor and respond to performance

Utilities used by the DBA Load routines Dump/Restore routines Reorganisation routines Statistics routines Analysis routines Data dictionary (containing METADATA, which gives data descriptions and mappings)

Database models Hierarchical Network Relational Object-oriented Hybrid Data Warehouses

Relational database Data is independent from programs and from other data Data is represented in TABLES rather than files. (one entity corresponds to 1 table) Column headings are described as DOMAINS. (i.e. attributes) Items of information as TUPLES or ROWS rather than records (i.e. occurrences of the entity)

Definitions A RELATION is a collection of semantically related information, usually containing a unique key. A RELATION = a Table FOREIGN key - a key to a different relation that is used as non-key data in this relation. (i.e. the enforcing field in the relationship) SIMPLE key - uses one item from the row COMPOUND key - uses more than one item / attribute Unnormalized data - contains headings, footings, differing number of occurrences for different fields.

Properties of a relation (TNF test) All row entries are non-divisible (atomic) - i.e. no such thing as arrays All entries in a particular column are drawn from the same set (i.e. no such thing as redefines)

Normalisation of data Collect all documents to be entered/produced Represent documents in unnormalized form Choose and identify key items, giving unnormalized data + keys Separate out repeating groups -> 1st Normal Form (1NF) Separate out part key dependencies -> 2nd Normal Form (2NF) Separate out inter-data and inter-key dependencies -> 3rd Normal Form (TNF) Apply TNF tests Optimise by combining relations with identical keys Apply TNF tests again

Relational database This is a database that is perceived by its users as a collection of tables. Each table can define an ENTITY Entities can be related through RELATIONSHIPS Relationships are implemented by use of foreign keys in tables Each column has a unique name within the table All rows are distinct (no two are the same) Row or column order is not significant Every relation must have a key

Implementation of desirable features Integrity –A field’s validation can be declared when the field is declared. If this validation is used, then the integrity of the field remains intact. –Entity integrity - No attribute participating in the primary key of a base relation is allowed to accept null values. –Domain constraints - what are the possible valid values that can be used?

Referential integrity –Through the propagation and use of foreign keys, no detail can be created where a master is needed, nor can a master be deleted without consent to the deletion of the details

Implementation of desirable features Data independence –The implementation of relational databases causes the external and conceptual schema to be data independent. The internal schema and the physical level are data dependent. Controlled redundancy –The relational model reduces redundancy at the conceptual level

Tugas Individu 1.Kunjungi asefund.htm asefund.htm 2.Membuat ringkasan hasil kunjungan ke URL di atas.