© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 10 Database Application Design.

Slides:



Advertisements
Similar presentations
Data Modeling and the Entity-Relationship Model
Advertisements

Data Modeling and the Entity-Relationship Model
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 9-1 COS 346 Day 20.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 2 Introduction to Database Development.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 4-1 David M. Kroenke Database Processing Chapter 7/8 Structured Query.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke Database Processing Chapter 6 Transforming Data.
Fundamentals, Design, and Implementation, 9/e Chapter 11 Managing Databases with SQL Server 2000.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
© 2002 by Prentice Hall 1 SI 654 Database Application Design Winter 2003 Dragomir R. Radev.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Methodology Logical Database Design for the Relational Model
RELATIONSHIP  THE WAY TABLES ARE RELATED  A TABLE MUST PARTICIPATE IN AT LEAST ONE RELATIONSHIP  IN A BINARY RELATIONSHIP TWO ENTITIES PARTICIPATE 
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 8-1 COS 346 Day 17.
Accounting Databases Chapter 2 The Crossroads of Accounting & IT
Fundamentals, Design, and Implementation, 9/e Chapter 7 Using SQL in Applications.
Data Modeling and the Entity-Relationship Model Chapter Four DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Chapter Extension 6 Using Microsoft Access © 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke.
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Transforming Data Models into Database Designs
Chapter 6: Integrity Objective Key Constraints (Chapter 2) Cardinality Constraints (Chapter 2) Domain Constraints Referential Integrity Assertions Triggers.
© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 13 Managing Databases with SQL Server 2000.
Chapter 4 The Relational Model Pearson Education © 2014.
Chapter 4 The Relational Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
With Microsoft Office 2007 Intermediate© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Office 2007 Intermediate.
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
With Microsoft Access 2007 Volume 1© 2008 Pearson Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access 2007 Volume 1 Chapter.
Working with Queries in Microsoft Access The Access Workbench: Section Three DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 3 rd Edition.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
Lecture 7 Integrity & Veracity UFCE8K-15-M: Data Management.
Database Application Design n Characteristics of Database Applications n Form Design n Report Design n Application Program Design.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, Modified by Dr. Mathis 3-1 David M. Kroenke’s Chapter Three: The Relational.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall, modified by Dr. Lyn Mathis 5-1 David M. Kroenke’s, 10 th ed. Chapter.
Getting Started Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
© 2002 by Prentice Hall 1 Database Processing with Microsoft Access David M. Kroenke Database Concepts 1e Appendix A.
Database Application Design and Data Integrity AIMS 3710 R. Nakatsu.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
Database Processing with Microsoft Access Appendix DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
Chapter 10 Database Application Design David M. Kroenke Database Processing © 2000 Prentice Hall.
Commercial RDBMSs Access and Oracle. Access DBMS Architchecture  Can be used as a standalone system on a single PC: -JET Engine -Microsoft Data Engine.
1 Chapter 17 Methodology - Local Logical Database Design.
© 2002 by Prentice Hall 1 Database Administration David M. Kroenke Database Concepts 1e Chapter 6 6.
Constraints cis 407 Types of Constraints & Naming Key Constraints Unique Constraints Check Constraints Default Constraints Misc Rules and Defaults Triggers.
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
CSE314 Database Systems Lecture 3 The Relational Data Model and Relational Database Constraints Doç. Dr. Mehmet Göktürk src: Elmasri & Navanthe 6E Pearson.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 6-1 David M. Kroenke’s Chapter Six: Transforming Data Models into Database.
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,
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
CSS/416 Data Design and Retrieval Workshop 3. CSS/416 Workshop 32 Database Management Systems Terminology Traditional MIS RDBMS Relational Algebra FileTableRelation.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Chapter 3: Relational Databases
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 5-1 David M. Kroenke’s Chapter Five: Data Modeling with the Entity-Relationship.
Chapter 4 The Relational Model Pearson Education © 2009.
CH 10 DB Application Design n 10.1 Functions n 10.2 Case Application n 10.3 Creating, Reading, Updating, Deleting View n 10.4 Form Design n 10.5 Report.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
New Perspectives on Microsoft Access 2016
and Defining Table Relationships
Chapter 5: Logical Database Design and the Relational Model
Chapter 3 The Relational Model.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 17 Designing Databases
Chapter 4 The Relational Model Pearson Education © 2009.
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Chapter 3 The Relational Model
Presentation transcript:

© 2002 by Prentice Hall 1 David M. Kroenke Database Processing Eighth Edition Chapter 10 Database Application Design

© 2002 by Prentice Hall 2 Functions of a Database Application

© 2002 by Prentice Hall 3 Four Basic Functions of Database Applications The four basic functions are common to all database applications These basic functions are –Create –Read –Update –Delete The (unfortunate) acronym for these functions is CRUD

© 2002 by Prentice Hall 4 Format/Materialize Function of a Database Application The format/materialize function of a database application involves designing the appearance of the database application

© 2002 by Prentice Hall 5 Enforce Constraints Function of a Database Application Database application constraints typically involve validating the format, structure, and/or values of data.

© 2002 by Prentice Hall 6 Provide Security and Control Function of a Database Application In that database applications provide access to many people for many purposes, the application must provide security and control functions. This helps protects the data from being seen and/or modified by unauthorized persons.

© 2002 by Prentice Hall 7 Execute Application Logic Function of a Database Application Database applications satisfy one or more business function. As such, the business logic must be embedded into the database application. These logic rules and procedures constitute the execute application logic function of a database application.

© 2002 by Prentice Hall 8 A View A view is a structured list of data attributes from the entities or semantic objects defined in the data model A view can be materialized or formatted as an on-line form or a hard-copy report

© 2002 by Prentice Hall 9 A View CRUD Functions – Create Create INSERT INTO CUSTOMER (CUSTOMER.Name, CUSTOMER.City) VALUES (NewCust.CUSTOMER.Name, NewCust.CUSTOMER.City)

© 2002 by Prentice Hall 10 A View CRUD Functions – Read Read SELECT CUSTOMER.CustomerID, CUSTOMER.Name FROM CUSTOMER, WORK WHERE CUSTOMER.CustomerID = WORK.CustomerID

© 2002 by Prentice Hall 11 A View CRUD Functions – Update Update INSERT INTO CUSTOMER (CUSTOMER.Name, CUSTOMER.City) VALUES (NewCust.CUSTOMER.Name, NewCust.CUSTOMER.City)

© 2002 by Prentice Hall 12 A View CRUD Functions – Delete Delete Cascading deletions depend on relationship cardinality

© 2002 by Prentice Hall 13 Form Design A form should... –Reflect the underlying structure of the view –Make data associations graphically evident –Encourage/Guide appropriate user action/response

© 2002 by Prentice Hall 14 Graphical User Interface (GUI) Controls Drop-down list box –A drop-down list box provides a list of items from which the user may choose Option (or radio) button –A set of option buttons allow the user to select one of a set of alternatives

© 2002 by Prentice Hall 15 Graphical User Interface (GUI) Controls Check box –A check box allows the user to select or deselect the option. Cursor movement/Pervasive Keys –Cursor movement defines the behavior of the cursor. The cursor should move naturally through the form.

© 2002 by Prentice Hall 16 GUI Example

© 2002 by Prentice Hall 17 Report Design The report should... –Reflect the underlying structure of the view –Handle implied objects The implied objects are those real- world objects that provide meaning and purpose to the report and to the database application

© 2002 by Prentice Hall 18 Enforcing Constraints within a Database Application Domain constraints Uniqueness Referential integrity constraints Relationship cardinality Business rule –Triggers

© 2002 by Prentice Hall 19 Uniqueness Constraint The uniqueness constraint determines if the value within the attribute must be unique for every tuple in the relation. Uniqueness is referred to as “no duplicates” within Microsoft Access

© 2002 by Prentice Hall 20 Referential Integrity Constraint Referential integrity defines the role and treatment of the foreign keys. For a foreign key to exist, the value of the foreign key must appear as a value in the primary key of the associated relation.

© 2002 by Prentice Hall 21 Relationship Cardinality Constraint Minimum relationship cardinality constraint Maximum relationship cardinality constraint

© 2002 by Prentice Hall 22 Minimum Relationship Cardinality Constraint The minimum relationship cardinality constraint defines whether participation in a relationship is mandatory or optional 0 = optional 1 = manditory –A fragment is a parent that does not have a required child –An orphan is a child that does not have a required parent

© 2002 by Prentice Hall 23 Maximum Relationship Cardinality Constraint The maximum relationship cardinality constraint defines the maximum level of participation in a relationship 1 = at most one N = zero or more

© 2002 by Prentice Hall 24 The Relationship Between the Minimum and Maximum Relationship Cardinality Constraints If the minimum cardinality constraint is optional (0), the maximum relationship cardinality constraint would mean: 1 = zero or one N = zero, one, or more

© 2002 by Prentice Hall 25 The Relationship between the Minimum and Maximum Relationship Cardinality Constraints If the minimum cardinality constraint is mandatory (1), the maximum relationship cardinality constraint would mean: 1 = one N = one or more

© 2002 by Prentice Hall 26 Business Rule Constraints Business rule constraints are those conditions that must be satisfied based on the rules, practices, and operating procedures of the organization.

© 2002 by Prentice Hall 27 Triggers Triggers are stored procedures that are invoked based on an action. –For instance a stored procedure may be invoked every time a record is added to the system.

© 2002 by Prentice Hall 28 Security Functions within a Database Application Typically, security exists on several levels within a database application –To log into the system, the user needs an operating system (e.g., the Windows username/password) –To log into the database, the user must supply a username and password –To execute the database application, the user must be granted access to the appropriate application files

© 2002 by Prentice Hall 29 Horizontal versus Vertical Security Schemes Horizontal security refers to the practice of restricting access to certain tuples in the database. –E.g., you may only see sales data in the NorthEast Vertical security refers to the practice of restricting access to certain columns in the database. –E.g., you may only see the name and address fields

© 2002 by Prentice Hall 30 Control Functions within a Database Application Typically control functions are introduced into database applications through menus and by defining transaction boundaries. –Using menus, the developer may control the access for a particular user. This access may change throughout a user’s session. –Transaction boundaries are defined to coordinate user actions in a multi-user environment.

© 2002 by Prentice Hall 31 David M. Kroenke Database Processing Eighth Edition Chapter 10 Database Application Design