DB Application Design (1) IS 240 – Database Management Lecture #16 – 2004-04-13 Prof. M. E. Kabay, PhD, CISSP Norwich University

Slides:



Advertisements
Similar presentations
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
Advertisements

Getting Started with Microsoft Office 2007
Chapter 1: The Database Environment
1 Copyright © 2007 M. E. Kabay. All rights reserved. Using the TRACK CHANGES Features in MS-Word M. E. Kabay, PhD, CISSP-ISSMP CTO & Program Director,
The Relational Model and Normalization (3) IS 240 – Database Management Lecture # Prof. M. E. Kabay, PhD, CISSP Norwich University
The Relational Model and Normalization (1)
Foundations of Relational Implementation (2) IS 240 – Database Management Lecture #14 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Database Design (1) IS 240 – Database Management Lecture #10 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Foundations of Relational Implementation (1) IS 240 – Database Management Lecture #13 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Application Design (2) Database – IS 240 Lecture #23 – M. E. Kabay, PhD, CISSP Dept of Computer Information Systems Norwich University
Database Design (3) IS 240 – Database Management Lecture #12 – Prof. M. E. Kabay, PhD, CISSP Norwich University
1 Copyright © 2004 M. E. Kabay. All rights reserved. Database Design (2) IS 240 – Database Management Lecture #11 – Prof. M. E. Kabay, PhD,
Introduction to Database Development (1) IS 240 – Database Management Lecture #3 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Managing Multi-User Databases (2) IS 240 – Database Management Lecture #19 – Prof. M. E. Kabay, PhD, CISSP Norwich University
SQL IS 240 – Database Management Lecture #15 – Prof. M. E. Kabay, PhD, CISSP Norwich University
E-R Model (1) IS 240 – Database Management Lecture #5 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Managing Multi-User Databases (1) IS 240 – Database Management Lecture #18 – Prof. M. E. Kabay, PhD, CISSP Norwich University
Working with MS-ACCESS IS 240 – Database Management Lecture #2 – Assoc. Prof. M. E. Kabay, PhD, CISSP Norwich University
Chapter 1 The Study of Body Function Image PowerPoint
BASIC SKILLS AND TOOLS USING ACCESS
Tuesday, May 7 Integer Programming Formulations Handouts: Lecture Notes.
6 Copyright © 2005, Oracle. All rights reserved. Building Applications with Oracle JDeveloper 10g.
Tutorial 3 – Creating a Multiple-Page Report
Tutorial 9 – Creating On-Screen Forms Using Advanced Table Techniques
XP New Perspectives on Microsoft Office Word 2003 Tutorial 7 1 Microsoft Office Word 2003 Tutorial 7 – Collaborating With Others and Creating Web Pages.
State of New Jersey Department of Health and Senior Services Patient Safety Reporting System Module 2 – New Event Entry.
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.
© Telcordia Technologies 2004 – All Rights Reserved AETG Web Service Tutorial AETG is a service mark of Telcordia Technologies. Telcordia Technologies.
1 Daily ATM/Debit Maintenance through CU*BASE A Preview of ATM and Debit Card Maintenance Screens Prepared June 24, 2009.
1 CIFTlab1.2 Software for Clinical Diagnostic Laboratories 1.
Information Systems Today: Managing in the Digital World
Data Structures Using C++
Campaign Overview Mailers Mailing Lists
1 Web-Enabled Decision Support Systems Access Introduction: Touring Access Prof. Name Position (123) University Name.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Access.
Chapter Information Systems Database Management.
Vanderbilt Business Objects Users Group 1 Reporting Techniques & Formatting Beginning & Advanced.
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.
1 CIFTclinic 1.1 Software for Clinics. 2 CIFTclinic Software for Medical Clinics, which addresses the requirements of practicing doctors to automate Medical.
Well-Being Icon Refer to Slide 2 for instructions on how to view the full-screen slideshow.Slide 2.
In The Name Of Allah, The Most Beneficent, The Most Merciful
XP New Perspectives on Introducing Microsoft Office 2003 Tutorial 1 1 Using Common Features of Microsoft Office 2003 Tutorial 1.
Chapter 11: The X Window System Guide To UNIX Using Linux Third Edition.
© Paradigm Publishing, Inc Excel 2013 Level 1 Unit 2Enhancing the Display of Worksheets Chapter 8 Adding Visual Interest to Workbooks.
Benchmark Series Microsoft Excel 2013 Level 2
Chapter 18 Designing User Interfaces
COMPUTER INTERFACES.
1 Displaying Open Purchase Orders (F/Y 11). 2  At the end of this course, you should be able to: –Run a Location specific report of all Open Purchase.
Chapter 5 Microsoft Excel 2007 Window
4 Oracle Data Integrator First Project – Simple Transformations: One source, one target 3-1.
© 2012 National Heart Foundation of Australia. Slide 2.
Macromedia Dreamweaver MX 2004 – Design Professional Dreamweaver GETTING STARTED WITH.
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Chapter 10: The Traditional Approach to Design
Systems Analysis and Design in a Changing World, Fifth Edition
©Brooks/Cole, 2001 Chapter 12 Derived Types-- Enumerated, Structure and Union.
McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 12 View Design and Integration.
Management Information Systems, 10/e
Contract Audit Follow-Up (CAFU) 3.5 Pre-Defined & Ad hoc Reports November 2009 ITCSO Training Academy.
Chapter 14 Designing User Interfaces
Registry and Referral System HCW/PSW Staff User Manual
User Friendly Item Relationship Maintenance A Family of Enhancements For iSeries 400 DMAS from  Copyright I/O International, 2006, 2007, 2008, 2010 Skip.
Windfall Web Throughout this slide show there will be hyperlinks (highlighted in blue). Follow the hyperlinks to navigate to the specified Topic or Figure.
© Copyright 2011 John Wiley & Sons, Inc.
Benchmark Series Microsoft Excel 2013 Level 2
Chapter 10 Database Application Design David M. Kroenke Database Processing © 2000 Prentice Hall.
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.
Presentation transcript:

DB Application Design (1) IS 240 – Database Management Lecture #16 – Prof. M. E. Kabay, PhD, CISSP Norwich University

2 Copyright © 2004 M. E. Kabay. All rights reserved. Topics Functions of DB Application Views User Interface Design Homework

3 Copyright © 2004 M. E. Kabay. All rights reserved. Functions of DB Application OLAP: OnLine Analytical Processing – decision support SW OLAP cubes: multidimensional database like 3D (or nD) spreadsheet for seeing many different views of data

4 Copyright © 2004 M. E. Kabay. All rights reserved. CRUD Four basic functions common to all DB applications Create Read Update Delete Hence CRUD

5 Copyright © 2004 M. E. Kabay. All rights reserved. Format/Materialize Independent aspects of DB data Data content = view Appearance = materialization or format Materialize = to design appearance of DB application

6 Copyright © 2004 M. E. Kabay. All rights reserved. Enforce Constraints Structural constraints Domain specifications Uniqueness Relationship constraints E.g., no order detail without order header Business rules Non-structural, non-obvious; e.g., ___________________________________ {rule from a student DB} Think of an example here.

7 Copyright © 2004 M. E. Kabay. All rights reserved. Provide Control and Security Six fundamental goals of information security Confidentiality Control or possession Data integrity Authenticity Availability Utility Think of examples of each of these in a database application

8 Copyright © 2004 M. E. Kabay. All rights reserved. Execute Application Logic Applications execute business logic Actions in one part of a DB usually imply effects on other parts E.g., in hospital application Issuing prescription in hospital pharmacy implies modifying current inventory Reaching re-order point initiates order to supplier Order to supplier implies changes to current budget line-item

9 Copyright © 2004 M. E. Kabay. All rights reserved. Topics Functions of DB Application Views User Interface Design Homework

10 Copyright © 2004 M. E. Kabay. All rights reserved. Views Structured list of data attributes Projection or subset From complete list of available entities Or semantic objects Defined in data model Can be materialized or formatted as On-line form or Hard-copy report or Graphical representation Static Dynamic

11 Copyright © 2004 M. E. Kabay. All rights reserved. View: Structured List Customer view: Structured List of Attributes for an Art Gallery DB [Figure 10-4(a), p. 263] CUSTOMER.Name CUSTOMER.AreaCode CUSTOMER.LocalNumber TRANSACTION.PurchaseDate TRANSACTION.SalesPrice... WORK.ARTIST.Name WORK.Title WORK.Copy ARTIST.Name... What do the ellipses imply?

12 Copyright © 2004 M. E. Kabay. All rights reserved. Sample Data for Customer View Figure 10-4 (b), p. 263 What is all this?

13 Copyright © 2004 M. E. Kabay. All rights reserved. View Create Create INSERT INTO CUSTOMER (CUSTOMER.Name, CUSTOMER.City) VALUES (NewCust.CUSTOMER.Name, NewCust.CUSTOMER.City)

14 Copyright © 2004 M. E. Kabay. All rights reserved. View Read Read SELECT CUSTOMER.CustomerID, CUSTOMER.Name FROM CUSTOMER, WORK WHERE CUSTOMER.CustomerID = WORK.CustomerID

15 Copyright © 2004 M. E. Kabay. All rights reserved. View Update Update INSERT INTO CUSTOMER (CUSTOMER.Name, CUSTOMER.City) VALUES (NewCust.CUSTOMER.Name, NewCust.CUSTOMER.City)

16 Copyright © 2004 M. E. Kabay. All rights reserved. View Delete Cascading deletions depend on relationship cardinality ??

17 Copyright © 2004 M. E. Kabay. All rights reserved. Topics Functions of DB Application Views User Interface Design Homework

18 Copyright © 2004 M. E. Kabay. All rights reserved. User Interface Design Form Structure Follows View Structure & User Needs Structure Should Guide Actions Good Form Design Can Prevent Catastrophe Drop-Down Menus Restrict Choices and Reduce Errors Radio Buttons for Mutually Exclusive Options Cursor Movements Function Keys Context-specific HELP

19 Copyright © 2004 M. E. Kabay. All rights reserved. Form Structure (1) No absolute, unambiguous algorithm for determining where to place data Form structure follows View structure & User needs Vary among users Group form elements logically / ergonomically User should naturally see data as being related to each other Sequence should reflect natural usage patterns from user point of view Or among groups of users (functions)

20 Copyright © 2004 M. E. Kabay. All rights reserved. Form Structure (2) Consider hospital DB with PATIENT, DOCTOR and PATIENT-DOCTOR tables Discuss ways you could group information rationally on forms to help Doctors treating individual patients A head nurse responsible for managing an entire floor What are the issues you would have to think about when designing the forms?

21 Copyright © 2004 M. E. Kabay. All rights reserved. Form Structure (3) DOCTOR'S FORM Patient: NameXXXX Agexx Bedxx Status: Date/Time Heart Respiration Temp xxxx xx xx xx Treatment Schedule: xxxxxxxxxxxx xxxxx xxxxxxxxx Notes:

22 Copyright © 2004 M. E. Kabay. All rights reserved. Form Structure (4) Head Nurse Form Bed Patient Nurse Next med Current status T H R xxxxxxxx xxxx xxxxxx xxxxx xxxxx xxxx Nurse Beds Covered Xxxxx xxx xxx xxx xxx xxx xxx xxx Doctor Pager # Xxxx xxxx

23 Copyright © 2004 M. E. Kabay. All rights reserved. Structure Should Guide Actions (1) Design form so that it's easy to do the right thing and hard to make mistakes; e.g., Highlight fields for visibility where user is expected to enter data Gray out fields where user is forbidden to enter or change data Set field length to imply or limit acceptable input; e.g., "State" field can be 2 characters only If possible, use lists of allowed data See later – e.g., drop-down boxes, radio buttons....

24 Copyright © 2004 M. E. Kabay. All rights reserved. Structure Should Guide Actions (2) Can have different variations of forms for different functions; e.g., DISPLAY form such as the ones discussed for doctors and for head nurses may mostly show data but allows few changes Discuss which fields might change in the forms shown in these notes NEW PATIENT form specifies fields for all the data needed for registration to collect appropriate information

25 Copyright © 2004 M. E. Kabay. All rights reserved. Good Form Design Can Prevent Catastrophe Chemical plant in Netherlands Computer-controlled reaction vessels Operator entered numerical codes into form on screen to determine compounds entering vats 1992: data entry error Operator typed 634 instead of 632 in numerical code for tank # of 1 of 2 compounds Mixture of wrong chemicals caused massive explosion Plant destroyed; 3 firemen killed & 11 employees injured Discuss how better form design could have prevented accident

26 Copyright © 2004 M. E. Kabay. All rights reserved. Drop-Down Menus Restrict Choices and Reduce Errors In the example of the explosion, a good form design might have shown a choice of allowable combinations instead of allowing any combination including explosive pairs Drop-down menus are perfect for showing allowed choices; e.g., Enter compound #1Enter compound #2 A B C D A C E G 12354

27 Copyright © 2004 M. E. Kabay. All rights reserved. Radio Buttons for Mutually Exclusive Options Drop-down boxes are useful for data- dependent choices that can change When there are fixed choices that are mutually exclusive, radio buttons make it intuitively easy for the user to understand the restriction: Select one of the following meal plans: 21/week 14/week 7/week Per meal

28 Copyright © 2004 M. E. Kabay. All rights reserved. Cursor Movements Make the cursor move from field to field in a way that reflects what the user will be doing For example, if a doctor tends to fill in information in a particular way, make the ENTER and TAB keys move the cursor to the logically-next field; e.g., Let doctor enter next treatment ENTER moves cursor to next line in list TAB moves cursor to next field (e.g., Notes) Be consistent in use of these keys

29 Copyright © 2004 M. E. Kabay. All rights reserved. Function Keys All special functions that are assigned to function keys (e.g., ESC, F1 F2 F3... ) should be available in drop-down menus If you define function keys, be absolutely consistent; e.g., if F1 is HELP, it should be HELP in every form; If ESC moves to the previous (or higher) form, it should always do so throughout the application

30 Copyright © 2004 M. E. Kabay. All rights reserved. Context-specific HELP General help (e.g., from F1 key or pulldown menu) Provides overview of entire form May have hyperlinks for specific information Provides suggestions for additional topics Allows navigation to an index of help topics May provide find function Help-cursor Allows user to point to specific part of form Brings up pop-up help to explain meaning or choices for particular field or feature ? Pop-up Help

31 Copyright © 2004 M. E. Kabay. All rights reserved. Homework Reread Chapter 10, pp using the full SURVEY-QUESTION-READ-RECITE-REVIEW phases of SQ3R Read ahead to complete the chapter for next Thursdays class REQUIRED: For Tuesday 20 April for 46 points Complete and hand in printed replies to Group 1 Questions 10.1 through Remember to include the question itself in your answer sheets (makes them much more useful for review)

32 Copyright © 2004 M. E. Kabay. All rights reserved. DISCUSSION