MS Office & Internet I Database Concepts Part 01 & 02.

Slides:



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

IT Relational Database Theory. The Relational Theory –Ways of working with data Types of “Models” –File database model –Hierarchical database model.
ENTITY RELATIONSHIP MODELLING
The Relational Database Model – some relations you might want to avoid!!!
IT420: Database Management and Organization
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Systems Development Life Cycle
Database Design & Mapping
Concepts of Database Management Sixth Edition
The Relational Database Model:
Information Resources Management February 13, 2001.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Database Collection of data in electronic format – A digital library of organization Managed.
Information Resources Management January 30, 2001.
FIS 431/631 Financial Information Systems: Analysis and Design ERD & Normalization Joe Callaghan Oakland University Department of Accounting & Finance.
Concepts of Database Management Seventh Edition
APPENDIX C DESIGNING DATABASES
Entity-Relationship Design
Entity Relationship Modeling Objectives: To illustrate how relationships between entities are defined and refined. To know how relationships are incorporated.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 1.
Entity-Relationship Modeling I The cautious seldom err. Confucius.
Data Modeling ERM ERD.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapter 4 The Relational Model.
4 1 Chapter 4 Entity Relationship (ER) Modeling Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
IT Data Modeling for Logical Design Section 04.
BIS 360 – Lecture Six (Part 2) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
1 ER Modeling BUAD/American University Entity Relationship (ER) Modeling.
Data Modelling – ERD Entity Relationship Diagram’s Entity Relationship Diagrams and how to create them. 1.
IS 325 Notes for Wednesday September 4, Syllabus Change I eliminated quizzes I increased the points allocated to homework assignments.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
Copyright (c) 2014 Pearson Education, Inc. Introduction to Databases.
DATABASEMODELSDATABASEMODELS  A database model ◦ defines the logical design of data. ◦ Describes the relationships between different parts of data.
Concepts and Terminology Introduction to Database.
SQL Structured Query Language Programming Course.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Relational Database. Database Management System (DBMS)
Slide Chapter 5 The Relational Data Model and Relational Database Constraints.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Lecture 4 Conceptual Data Modeling. Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship,
Database Design – Lecture 5 Conceptual Data Modeling – adding attributes.
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
IT 21103/41103 System Analysis & Design. Chapter 04 Data Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
INTRODUCTION lecture1 1. Data base concept Data is a meaningless static value. What does 3421 means? Information is the data you process in a manner that.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
The Entity-Relationship Model, P. I R. Nakatsu. Data Modeling A data model is the relatively simple representation, usually graphic, of the structure.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
EntityRelationshipDiagrams. Entity Relationship Models The E-R (entity-relationship) data model views the real world as a set of basic objects (entities)
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
ERD :: 19 / 1 / Entity-Relationship (ER) Modeling. ER Modeling is a top-down approach to database design. Entity Relationship (ER) Diagram –A.
IS 4420 Database Fundamentals Chapter 3: Modeling Data in the Organization Leon Chen.
ENTITY RELATIONSHIP DIAGRAM. Objectives Define terms related to entity relationship modeling, including entity, entity instances, attribute, relationship.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
Entity Relationship Modeling
Entity-Relationship Model
Tables and Their Characteristics
Database Design – Lecture 4
ERD’s REVIEW DBS201.
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Data Modeling for Database Design 2
Review of Week 1 Database DBMS File systems vs. database systems
Entity-Relationship Diagram (ERD)
Presentation transcript:

MS Office & Internet I Database Concepts Part 01 & 02

The Database Environment The Database Environment consists of all the parts and pieces that makeup a database system

The Database Environment DUNSHA DData UUsers NNetwork SSoftware HHardware AAdministration

What is a Database? A Database is a: Collection of Related Data for A Known Group of Users that meet Specific Requirements and Models or Represents the Real World

Database Structures Relational TypeObject TypeMS Access Type RelationTable TupleRowRecord AttributeColumnField Primary Key Foreign Key

Relation Rules No Duplicate rows in a Table No order of Rows No order of Columns

Relationships Defines how Tables are related to each other in the database

Relationships Relationships are created by using a Foreign Key

Relationships Primary Key Must be UNIQUE Is MANDATORY Is UNCHANGING Is CONTROLLED BY IT DEPT

Relationships Foreign Key (FK) Is the Primary Key (PK) of the parent table

Relationships Rules: No Part of the Primary Key can be NULL (We call this enforcing Entity Integrity) NULL = Nothing (It is not Zero (0) it is nothing)

Relationships Rules: A Foreign Key can be NULL It must be a PK in the related table (We call this enforcing Referential Integrity)

Database Model Represents Reality Has Relations (Tables) that: Equals one Entity Type per Table Each Row represents only one occurrence of the Entity Each occurrence (Row) is Unique

Database Model A Primary Key and Foreign Key may be Composite Keys Made up of more than one Column (Attribute)

Example Table (w/Data) ANAMEAFAMILYWEIGHT CandiceCamel1800 ZonaZebra900 SamSnake5 ElmerElephant5000 LeonardLion1200 Primary Key (Underlined) Relation (Table) Attributes (Columns) Tuples (Rows)

Example Relationship MIDMNAMEMADDRANAME 171N. Harrison1400 Blush RdZona 144J. Montagano th AveLeonard 194J. Spence1244 Lark LnCandice 303E. Wingate5222 Gains DrCandice 101H. Yarchun177 Beach Rd 270K. Steeg140 Crystal DrZona 291S. Ackerman1172 Park DrSam 301K. Snyder th Ave ANAMEAFAMILYWEIGHT CandiceCamel1800 ZonaZebra900 SamSnake5 ElmerElephant5000 LeonardLion1200 Animal Foreign Key (Circled) Zoo-Member

MS Access MS Access is a Personal or Small Business Relational Database It is limited in scope but powerful for its intended purpose

Microsoft SQL Server This is the Enterprise or Large Business Relational Database which is very powerful and complete in scope

ORACLE Database This is the Enterprise or Large Business Relational Database which is very powerful and complete in scope Taught at Rio in courses: IT DBMS Concepts IT Database Communications IT Database Administration Can lead to Oracle Certification (OCA) or the URG Database Technology Certificate

MS Access We will build a database in Class using MS Access utilizing all of the parts and pieces: Tables Rows Columns PK’s FK’s

Questions End Part 01

Entity-Relationship Diagrams Logical Database Design What is a Data Model? A way to represent reality A schematic of data items and relationships A “blueprint” for the database

Entity-Relationship Diagrams The Entity-Relationship Approach Represents reality using well-defined graphics and rules Basic building blocks are: “things” (entities) and relationships Member Animal M 1 Adopts

Relational Database Theory Entity-Relationship Model: Basic Concepts –Entity Thing, Object, Concept of interest to the enterprise Each occurrence can be uniquely identified

Relational Database Theory Entity-Relationship Model: Basic Concepts –Attribute Property of an entity Column

Relational Database Theory Entity-Relationship Model: Basic Concepts –Relationship Association between two (or more) entities

Relational Database Theory Entity-Relationship Model: Basic Concepts –Entity Identifier Attribute(s) whose value uniquely identifies an entity Primary Key

Relational Database Theory What is an Entity? –Physical entity types Person Building Machine Book Usually Singular

Relational Database Theory What is an Entity? –Conceptual entity types Contract Account Order Course

Relational Database Theory What is an Entity? –Event entity types Transaction Shipment Reservation Phone Call Seminar Offering

Relational Database Theory Entity-Relationship Model: Diagrams –Example: –Soft Rectangle represents entities Noun Singular –Connecting Line represents relationships Verb Member Animal Adopts

Relational Database Theory Relationships have Characteristics –A relationship has Cardinality (Degree) One-to-OneOne-to-Many Many-to-Many

Relational Database Theory Each entity’s participation is Mandatory or Optional Cardinality & Optionality are based on business rules Mandatory Optional

Relational Database Theory One:One Relationship –One Member adopts one animal –One Animal is adopted by one member Member Animal Adopts

Relational Database Theory One:Many relationship –One member adopts one animal –One animal is adopted by many members Member Animal Adopts

Relational Database Theory Many:Many relationship –One member adopts many animals –One animal is adopted by many members Member Animal Adopts

Relational Database Theory Optionality: Participation in a Relationship Zoo Employee Animal Cares for

Relational Database Theory Mandatory –Every instance of the entity MUST participate in the relationship –Example: Every animal is cared for by at least one employee

Relational Database Theory Optional –An instance of the entity CAN participate in the relationship –Example: Some employees do not take care of animals

E-R Diagrams Guidelines to Develop an E-R Diagram –Identify the Major Entities –Identify the Attributes for each entity –Determine the Unique Identifier(s) –Identify the Relationships –Assign Cardinality –Determine Optionality –Resolve M:N Relationships

E-R Diagrams Mapping the E-R Diagram to the Relational Database –Each entity becomes a Table –Each attribute becomes a Column –Unique Identifier becomes the PK –Each 1:M becomes a FK on the Many Side

E-R Diagrams Practice 01 –A company has ten departments –A company has five divisions –A company has one hundred employees –Each employee must work for one department –Each division has two departments

E-R Diagrams Practice 02 –A company has twenty employees –Each employee works for a department –There are two departments in the company

E-R Diagrams Practice 03 –A company has three divisions –A company has one manager per division –Each manager is in charge of one committee

E-R Diagrams Practice 04 –A company has a sales department with fifteen salespersons –Each salesperson works for the sales department –Each salesperson is supervised by one manager –The managers may not have an salesperson to supervise

Questions End Part 02

Assignment 04 In-Class Project Develop a Database in MS ACCESS 2003 Choices Are: Music Library Book Library Club or Organization