Stephen C. Hayne 1 Database System Components The Database and the DBMS.

Slides:



Advertisements
Similar presentations
You have been given a mission and a code. Use the code to complete the mission and you will save the world from obliteration…
Advertisements

Entity Relationship (E-R) Modeling
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
Advanced SQL Topics Edward Wu.
Database Fundamentals
Chapter 1: The Database Environment
Chapter 7 System Models.
Foundations of Relational Implementation (1) IS 240 – Database Management Lecture #13 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Introduction to Database Development (1) IS 240 – Database Management Lecture #3 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Chapter 1 The Study of Body Function Image PowerPoint
Database Design DB Chapter 5 J.G. Zheng June 29th 2005.
Relational Database and Data Modeling
10 Copyright © 2005, Oracle. All rights reserved. Dimensions.
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Jeopardy Q 1 Q 6 Q 11 Q 16 Q 21 Q 2 Q 7 Q 12 Q 17 Q 22 Q 3 Q 8 Q 13
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Determine Eligibility Chapter 4. Determine Eligibility 4-2 Objectives Search for Customer on database Enter application signed date and eligibility determination.
Relational data objects 1 Lecture 6. Relational data objects 2 Answer to last lectures activity.
Introduction to Relational Database Systems 1 Lecture 4.
Relational data integrity
Conceptual / semantic modelling
1 Term 2, 2004, Lecture 6, Views and SecurityMarian Ursu, Department of Computing, Goldsmiths College Views and Security 3.
1.
Information Systems Today: Managing in the Digital World
Yavapai College Self Service Banner Training. Agenda Definition of Key Concepts Log Into Finance Self Service Budget Query Overview Budget Query Procedures.
ABC Technology Project
9 Copyright © 2004, Oracle. All rights reserved. Using DDL Statements to Create and Manage Tables.
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
Yong Choi School of Business CSU, Bakersfield
Microsoft Access.
Chapter Information Systems Database Management.
State of Connecticut Core-CT Project Query 8 hrs Updated 6/06/2006.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
Chapter 10: Designing Databases
Chapter 6 Data Design.
Access Tables 1. Creating a Table Design View Define each field and its properties Data Sheet View Essentially spreadsheet Enter fields You must go to.
Creating Tables. 2 home back first prev next last What Will I Learn? List and provide an example of each of the number, character, and date data types.
VOORBLAD.
the Entity-Relationship (ER) Model
Lecture plan Outline of DB design process Entity-relationship model
Introduction to Databases
25 seconds left…...
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
We will resume in: 25 Minutes.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 12 View Design and Integration.
Chapter 12: Designing Databases
Chapter 15 A Table with a View: Database Queries.
PSSA Preparation.
Chapter 11 Describing Process Specifications and Structured Decisions
Computer Concepts BASICS 4th Edition
1 © Prentice Hall, 2002 Chapter 4: The Enhanced E-R Model and Business Rules Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B. Prescott,
© Copyright 2011 John Wiley & Sons, Inc.
Enhanced/Extended Relationship-Diagram
Chapter 12 File Processing and Data Management Concepts
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Attribute databases. GIS Definition Diagram Output Query Results.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 2 Introduction to Database Development Database Processing David M. Kroenke © 2000 Prentice Hall.
MS Access 2007 IT User Services - University of Delaware.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Relational Databases and SQL. Learning Objectives Understand techniques to model complex accounting phenomena in an E-R diagram Develop E-R diagrams.
(C) 2000, The University of Michigan 1 Database Application Design Handout #2 January 14, 2000.
Entity Relationship Diagram (ERD). Objectives Define terms related to entity relationship modeling, including entity, entity instance, attribute, relationship.
Chapter 3: Relational Databases
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Introduction to Database Development CH2. CH2. Introduction to DB Development Database n Components of Database Systems (Figure 2-1) –User data –Metadata.
Database Fundamentals
Data Model.
Presentation transcript:

Stephen C. Hayne 1 Database System Components The Database and the DBMS

Stephen C. Hayne 2 A Model of the Database Processing System HardwarePrograms Data ProceduresPeople MachineHuman Bridge Instructions Actors

Stephen C. Hayne 3 Database System Components

Stephen C. Hayne 4 User Data n Data about –Entities or objects »employees, departments, products.... »students, courses, professors –Attributes »SS#, name, address, salary, department –Relationships (bi-directional) between entities or objects »Employees assigned to Departments. »Departments are assigned Employees. »Students take Courses. »Courses are taken by Students.

Stephen C. Hayne 5 Users’ Data n For relational databases, tables with rows and columns representing unique records and attributes n Not all tables are equally desirable: What is the problem with this? MovieRatingStar Saving Private RyanGTom Hanks Saving Private RyanGMatt Damon TitanicRKate Winslet TitanicRLeonardo Di Caprio

Stephen C. Hayne 6 Relationships Between Entities Relationships Between Entities n Cardinality –the number of entities of each type that may participate in the relationship –may be »1:1 (one-to-one) »1:M (one-to-many) »M:N (many-to-many) –to determine cardinality, ask: »for each A, how many B’s may be related? »for each B, how many A’s may be related?

Stephen C. Hayne 7 Minimum & Maximum Cardinality n For each A, what is the minimum and maximum number of related B’s. n For each B, what is the minimum and maximum number of related A’s. n If the minimum is zero –The relationship is “optional.” –The entity may or may not (sometimes) participates n One or more –The relationship is “mandatory. The entity must (always) participate.

Stephen C. Hayne 8 Relationship Examples n Business Rules n 1 : 1 (one-to-one) –Each faculty member is always assigned to one office. –Each office is sometimes assigned to one faculty member. n 1 : M (one-to-many) –Each employee is always assigned to one department. –Each department is always assigned many employees. n M : N (many-to-many) –Each student always takes many courses. –Each course is sometimes taken by many students

Stephen C. Hayne 9 What is the cardinality between... n Cities and zip codes? –Each city ? has ? zip codes. –Each zip code ? corresponds to only ? city. ===> 1:M n People and phone numbers? –Each person ? has ? phone numbers. –Each phone number ? belongs to ? persons. ===> M:N

Stephen C. Hayne 10 Four Data “Models” n Hierarchical n Network n Relational n Object Oriented

Stephen C. Hayne 11 Hierarchical n Support 1:1 and 1:M Relationships n Parent - Child Viewpoint n Parent (Owner) record has one or more children (Members) –Customer has one checking account –Checking account has many transactions n Each child (member) has only one parent (owner)

Stephen C. Hayne 12 Example Hierarchy: Banking Database Customer# | SS# | Address|... Checking Acct. # | Current Balance | Statement Date Check# | Date | Payee | Amount Deposit# | Date | Amount Savings Acct. # | Current Balance | Statement Date

Stephen C. Hayne 13 Simple Network n Children may have more than one parent n Example: Joint checking account John DoughJayne Dough Checking Acct. # 999

Stephen C. Hayne 14 Complex Network n Supports M:N relationships Students CoursesSecurities Portfolios

Stephen C. Hayne 15 Relational Model n Data organized into tables (relations) n Tables have columns (attributes) n Data stored in rows (tuples) n Each row has a unique primary key n Relationships included in the data

Stephen C. Hayne 16 Relational Tables and Data EMPLOYEE(SS#, EmployeeName, EmployeeAddress, Department_ID) DEPARTMENT(DEPARTMENT_ID, DepartmentName, Manager) EMPLOYEE SS#EmployeeNameEmployee AddressDepartment_ID 1223John DoughWall StreetAcct 3214Jayne DoughWall StreetFin 7653Jill OutleyWellbornAcct DEPARTMENT DEPARTMENT_IDDepartmentNameManager AcctAccountingBeane Kounter FinFinance Cash McCall

Stephen C. Hayne 17 Metadata n “Data about the data.” n Data dictionary - Data Definition Language –For each table or record »Table or record name »Number of columns or Fields »Primary key –For each data item »Date item name »Data type (Numeric, date, text...) »Size

Stephen C. Hayne 18 Metadata n Use DDL n Description of database structure n System tables (e.g., tables and columns)

Stephen C. Hayne 19 Indexes n Usually “inverted lists” for accessing data. DepartmentEmployees Acct1223, 7653 Fin3214

Stephen C. Hayne 20 Indexes and other data structures n Improve performance for sorting and searching n But: overhead of updating n Who has Info Systems as major?

Stephen C. Hayne 21 Application Metadata n Structure & format of application components –Forms –Reports –Queries –Etc.

Stephen C. Hayne 22 Forms n Data entry n Hiding IDs

Stephen C. Hayne 23 Queries n By example (QBE) n By form n By DML (Data Manipulation Language)

Stephen C. Hayne 24 Reports n Data display

Stephen C. Hayne 25 Menus n Organize application components

Stephen C. Hayne 26 Application programs n DMLs n Standard languages + DBMS interface n Eg: trapping events in Visual Basic + Access

Stephen C. Hayne 27 DB System Architecture

Stephen C. Hayne 28 The Database Schema n Tables n Relationships n Domains –constraints on values that a column may have. –e.g. date, integer number, text of length N... –ID’s (primary keys) must be unique n Business rules –Rules or policies that must be enforced in the database. »Each employee is always assigned to one department. »Each department is always assigned one or more employees.

Stephen C. Hayne 29 Summary n Database Systems include –the database consisting of »Data, Metadata, Indexes, Application metadata –the database management system (DBMS) »Design Tools & Run Time Tools