FatMax 2007. Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Prentice Hall, Database Systems Week 1 Introduction By Zekrullah Popal.
ENTITY RELATIONSHIP MODELLING
1 1 File Systems and Databases. 1 1 Introducing the Database 4Major Database Concepts u Data and information l Data - Raw facts l Information - Processed.
Database BA471 – Fall 2007 Dr. V.T. Raja Oregon State University.
System Concepts and Architecture Rose-Hulman Institute of Technology Curt Clifton.
1 Introduction The Database Environment. 2 Web Links Google General Database Search Database News Access Forums Google Database Books O’Reilly Books Oracle.
Entity-Relationship Model and Diagrams (continued)
Organizing Data & Information
Ch1: File Systems and Databases Hachim Haddouti
“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.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 1: The Database Environment
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
APPENDIX C DESIGNING DATABASES
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Databases Tom Morgan.
IST Databases and DBMSs Todd S. Bacastow January 2005.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Daniel AdinugrohoDatabase Programming 1 DATABASE PROGRAMMING Lecture on 29 – 04 – 2005.
Database Design Concepts
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
Chapter 1: The Database Environment and Development Process
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
Concepts and Terminology Introduction to Database.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Architecture for a Database System
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Information Systems & Databases 2.2) Organisation methods.
Module 2: Information Technology Infrastructure Chapter 5: Databases and Information Management.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Software Classification. FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike.
 So far in ICT we’ve covered how data is entered into computers (data capture) and how it’s checked (validation and verification).  In this section.
Btec National - Advanced Databases 1 Advanced Databases Entity Relationship Diagrams.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
+ Information Systems and Databases 2.2 Organisation.
CPSC 603 Database Systems Lecturer: Laurie Webster II, M.S.S.E., M.S.E.E., M.S.BME, Ph.D., P.E. Lecture 2 Introduction to a First Course in Database Systems.
GIS Data Models GEOG 370 Christine Erlien, Instructor.
Lesson 2: Designing a Database and Creating Tables.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
Sample Table Standard Notation Entity name in uppercase
Btec National - IT SYSTEMS ANALYSIS AND DESIGN 1 IT Systems Analysis and Design Entity Relationship Diagrams.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5.
Adapted from: FatMax Licensed under a Creative Commons Attribution-NonCommercial- ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-
Databases Flat Files & Relational Databases. Learning Objectives Describe flat files and databases. Explain the advantages that using a relational database.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
1 Lecture1 Introduction to Databases Systems Database 1.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Lesson 10 Databases.
Databases Key Revision Points.
Presentation transcript:

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License RDBMS (An Introduction)

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Why Relational Databases? Data is stored in a database so that it can be sorted and searched to provide meaningful information What are the advantages of RDBMS over flat file systems?

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Flat File Problems Recall the main problems of flat file databases Redundancy Inconsistency Difficult to update Program/data dependence The aim of using a RDBMS is to eliminate (as far as possible) these problems

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License RDBMS - Entities A relational database consists of multiple tables joined (linked) together by relationships Each table should contain data about a single entity Person – Employee Object - Book Event - Project

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Relationships Usually joined on primary/foreign key Relationship have a degree (i.e. there are different types): Entities (tables) are joined together by relationships

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Relation Types 3 degrees (types) of relationship One-to-Many Many-to-Many One-to-One Doctor/Patient Teacher/Form Group Students/Classes

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Drawing Relationships Entity-Relationship Diagram Shows the type of and nature of relationship between entities in the system ArtistAlbums

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Worked Example 1 Look at the iTunes database on the next slide Draw an E-RD of the entities you would expect to see if this was converted into a relational database HINT: There are 4 entities. All relationships are one-to-many

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Worked Example 2

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Worked Example 3 Did you get something like this? AlbumsArtistsTracks Genres

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License RDBMS - Attributes Attributes describe the properties of an entity It’s easiest to think of attributes as fields

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Database Notation When documenting databases (e.g. for coursework) use standard database notation The name of the table (Entity) appears in upper case The fields (attributes) are shown in brackets The key field is underlined COURSE_VENUE (Venue_ID, Venue_Name, Address, Town, County, Telephone, Postcode)

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Database Architecture WYSINWYG What you see is NOT what you get!!! The DBMS is an application program that provides an interface between the data and the user in order to make access to the data stored as simple as possible. The user interface is not necessarily a true reflection of how data is stored!

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Three Level Architecture EXTERNAL / USER SCHEMA INTERNAL / STORAGE SCHEMA CONCEPTUAL / LOGICAL SCHEMA Schema are ‘views’ – they describe the structure and how a database can be accessed. There are three main schema, which allow DBMS administrators to look at the structure and design of a database in different ways. The DBMS is an application program that provides an interface between the data and the user in order to make access to the data stored as simple as possible.

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Three Level Architecture 2 EXTERNAL / USER INTERNAL / STORAGE CONCEPTUAL / LOGICAL This is the overall view of the entire database, including entities, attributes and relationships as designed by the database administrator. How the data will be stored and is concerned with file organisation and access methods. This is the individual’s view of the database – in multi-user databases, there will be several different external schema giving different people different access rights.

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Internal Storage In the internal/storage schema data about each entity is stored only once in its entirety Therefore: Less duplication (redundancy) No inconsistencies across duplicates (because there aren’t any duplicates!!!!) Less disk space required Easier to update

FatMax Licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 2.5 LicenseCreative Commons Attribution-NonCommercial-ShareAlike 2.5 License Research/Tasks Make notes from your textbook/web sources about the benefits of RDBMS over flat files Complete the revision diagram at Disclaimer: The slides on database architecture come directly from a presentation by R. Cawley and are © R. Cawley. If you choose to alter this presentation you MUST leave this copyright notice intact.