File and data base concepts

Slides:



Advertisements
Similar presentations
1 Design Process - Where are we? Conceptual Design Conceptual Schema (ER Model) Logical Design Logical Schema (Relational Model) Step 1: ER-to-Relational.
Advertisements

Database Languages Chapter 7. The Relational Algebra.
Chapter 12 File Processing and Data Management Concepts
Relational Databases Chapter 4.
WELL-DESIGNED DATABASES Process faster Easy to develop and maintain Easy to read and write code.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye.
COMPUTING FOR BUSINESS AND ECONOMICS-III. Lecture no.6 COURSE INSTRUCTOR- Ms. Tehseen SEMESTER- Summer 2010.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
1 Chapter 1 Introduction. 2 Introduction n Definition A database management system (DBMS) is a general-purpose software system that facilitates the process.
File and data base concepts DB design. Webcast will cover n Databases n Entities n Basic ERD n PK & FK n Basic Database Design.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
 2001 Prentice Hall Business Publishing, Accounting Information Systems, 8/E, Bodnar/Hopwood A field may be a single character or number, or it.
Technology Guide 3 Data & Database. Agenda Definition File processing problems Database Selection criteria.
Design Methods Instructor: Dr. Jerry Gao. Software Design Methods Design --> as a multistep process in which we design: a) data structureb) program structure.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Chapter 3: Relational Databases
Howard Paul. Sequential Access Index Files and Data File Random Access.
Geographic Information Systems GIS Data Databases.
Structured Query Language IV Asma Ahmad (C. J. Date) Database Systems.
ACCOUNTING INFORMATION SYSTEMS
Databases and DBMSs Todd S. Bacastow January
CS 325 Spring ‘09 Chapter 1 Goals:
- The most common types of data models.
Fundamentals of DBMS Notes-1.
IS 130 Information systems 1
Databases Chapter 16.
Database Systems Chapter 3 1.
Conceptual and Physical Database Design
Database Management:.
STRUCTURE OF PRESENTATION :
Fundamentals of Information Systems, Sixth Edition
Fundamentals & Ethics of Information Systems IS 201
Secondary Storage Management 13.5 Arranging data on disk
Chapter 12 Information Systems.
Fundamentals of Information Systems
Chapter 4 Relational Databases
Translation of ER-diagram into Relational Schema
Databases and Information Management
Big Data The huge amount of data being collected and stored about individuals, items, and activities and to the process of drawing useful information from.
Introduction to Database Systems
Basic Concepts in Data Management
Order Database – ER Diagram
MANAGING DATA RESOURCES
SYSTEMS ANALYSIS & DESIGN
Secondary Storage Management 13.5 Arranging data on disk
Managing data Resources:
LECTURE 34: Database Introduction
پايگاه داده ها.
الفصل الخامس قواعد البيانات Databases
قـواعــــد الـبـيــانــات
MANAGING DATA RESOURCES
The Entity-Relationship Model
Databases and Information Management
Unit 7 Normalization (表格正規化).
Accounting Information Systems 9th Edition
Relationships—Topics
Design tools and techniques for a relational database system
Chapter 1 Introduction to Database Processing
ບົດທີ 6 ການຄຸ້ມຄອງຊັບພະຍາກອນຂໍ້ມູນ (Managing Data Resource)
Question 1: Basic Concepts (45 %)
LECTURE 33: Database Introduction
The Entity-Relationship Model
STRUCTURE OF PRESENTATION :
The Entity-Relationship (ER) Model
Geographic Information Systems
Presentation transcript:

File and data base concepts DB design

File Concepts DATA REPRESENTATION bits and bytes EBCDIC and ASCII field or data element record file or table data base FILE ORGANIZATION sequential indexed sequential direct FILE PROCESSING batch vs immediate online vs offline

DB: a set of entities and relations In city In state Street Cities States located Registered on in Cars Houses In country Occupied Owned Has by by color Citizen of Colors Persons Countries Country of origin

DB: subsystems DB logical structures: hierachical network relational DBMS DDL OS DBM User Data Base DML Application program DB logical structures: hierachical network relational

Views, Schema and Subschemas 1 2 5 4 7 9 10 8 15 12 17 13

DB Design concepts: ... how to represent entities and relations Flat files ... P# PNAME COLOR WEIGHT PROJ# PROJNAME S# QTY PROJ# S# SNAME STATUS CITY DB tables graphical S S# SNAME STATUS CITY FIELDS: P P# PNAME COLOR WEIGHT keys and atributes primary and foreign keys J PROJ# PROJNAME CITY O S# P# PROJ# QTY relational notation S ( S#, SNAME,STATUS,CITY) P ( P# ,PNAME,COLOR,WEIGHT) J ( PROJ# ,PROJNAME,CITY) O ( S#,P#,PROJ# ,QTY)

Entities and relations RELATIONS: one-to-one one-to-many many-to-many Product a supplier can provide project product can a product can use be part of can have Supplier Project a supplier can supply a project can have

DB Design principles NORMALIZATION: 1. represent each ENTITY as a TABLE 2. select the PRIMARY KEY 3. assign entity ATTRIBUTES to FIELDS 4. represent an ONE-TO-MANY relation by a FOREIGN KEY in the MANY table. 5. represent MANY-TO MANY relations as a NEW TABLE. Use FOREIGN KEYS to identify entities involved. The combination of foreign keys is the PRIMARY KEY of the new table. Assign the common attributes to fields.

DB design example Product Project Supplier many many a supplier can provide project product can a product can use be part of can have many many Supplier Project a supplier can supply many a project many can have S (S#,SNAME,STATUS,CITY) P (P#,PNAME,COLOR,WEIGHT) J (PROJ#,PROJNAME,CITY) O (S#,P#,PROJ#,QTY)