Introduction to Database Development (1) IS 240 – Database Management Lecture #3 – 2004-01-22 Prof. M. E. Kabay, PhD, CISSP Norwich University

Slides:



Advertisements
Similar presentations
Using the SQL Access Advisor
Advertisements

Numbers Treasure Hunt Following each question, click on the answer. If correct, the next page will load with a graphic first – these can be used to check.
Module 3: Block 3 Call Management
1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
AP STUDY SESSION 2.
Advanced SQL Topics Edward Wu.
1
Chapter 7 System Models.
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
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)
Introduction to Database Processing IS 240 – Database Management Lecture #1 – 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
Database Design (3) IS 240 – Database Management Lecture #12 – 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
1 Note content copyright © 2004 Ian Sommerville. NU-specific content copyright © 2004 M. E. Kabay. All rights reserved. Application Architectures IS301.
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 4 Computing Platforms.
Processes and Operating Systems
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
1 Copyright © 2013 Elsevier Inc. All rights reserved. Chapter 3 CPUs.
Myra Shields Training Manager Introduction to OvidSP.
1 Hyades Command Routing Message flow and data translation.
Exit a Customer Chapter 8. Exit a Customer 8-2 Objectives Perform exit summary process consisting of the following steps: Review service records Close.
Process a Customer Chapter 2. Process a Customer 2-2 Objectives Understand what defines a Customer Learn how to check for an existing Customer Learn how.
Custom Statutory Programs Chapter 3. Customary Statutory Programs and Titles 3-2 Objectives Add Local Statutory Programs Create Customer Application For.
Custom Services and Training Provider Details Chapter 4.
1 Chapter 12 File Management Patricia Roy Manatee Community College, Venice, FL ©2008, Prentice Hall Operating Systems: Internals and Design Principles,
Microsoft®.
Office 2003 Introductory Concepts and Techniques M i c r o s o f t Windows XP Project An Introduction to Microsoft Windows XP and Office 2003.
Turing Machines.
Information Systems Today: Managing in the Digital World
ETS4 - What's new? - How to start? - Any questions?
© Telcordia Technologies 2004 – All Rights Reserved AETG Web Service Advanced Features AETG is a service mark of Telcordia Technologies. Telcordia Technologies.
PP Test Review Sections 6-1 to 6-6
Bright Futures Guidelines Priorities and Screening Tables
Chapter 7 Working with Databases and MySQL
Microsoft Access.
EIS Bridge Tool and Staging Tables September 1, 2009 Instructor: Way Poteat Slide: 1.
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.
Bellwork Do the following problem on a ½ sheet of paper and turn in.
© Copyright by Deitel & Associates, Inc. and Pearson Education Inc. All Rights Reserved. 1 Outline 24.1 Test-Driving the Ticket Information Application.
Benchmark Series Microsoft Excel 2013 Level 2
Copyright © 2012, Elsevier Inc. All rights Reserved. 1 Chapter 7 Modeling Structure with Blocks.
1 RA III - Regional Training Seminar on CLIMAT&CLIMAT TEMP Reporting Buenos Aires, Argentina, 25 – 27 October 2006 Status of observing programmes in RA.
1..
Jim Haywood (Product Manager for Statutory Returns) Adopted from Care - Spring Release 2014.
CONTROL VISION Set-up. Step 1 Step 2 Step 3 Step 5 Step 4.
Page 1 of 43 To the ETS – Bidding Query by Map Online Training Course Welcome This training module provides the procedures for using Query by Map for a.
1 How Do I Order From.decimal? Rev 05/04/09 This instructional training document may be updated at anytime. Please visit and check the.
2004 EBSCO Publishing Presentation on EBSCOadmin.
Stephen C. Hayne 1 Database System Components The Database and the DBMS.
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Analyzing Genes and Genomes
Speak Up for Safety Dr. Susan Strauss Harassment & Bullying Consultant November 9, 2012.
Chapter 12 Working with Forms Principles of Web Design, 4 th Edition.
Essential Cell Biology
ANSC644 Bioinformatics-Database Mining 1 ANSC644 Bioinformatics §Carl J. Schmidt §051 Townsend Hall §
PSSA Preparation.
Chapter 11 Creating Framed Layouts Principles of Web Design, 4 th Edition.
Essential Cell Biology
Immunobiology: The Immune System in Health & Disease Sixth Edition
©Ian Sommerville 2004Software Engineering, 7th edition. Chapter 13 Slide 1 Application architectures.
Energy Generation in Mitochondria and Chlorplasts
RefWorks: The Basics October 12, What is RefWorks? A personal bibliographic software manager –Manages citations –Creates bibliogaphies Accessible.
Import Tracking and Landed Cost Processing An Enhancement For AS/400 DMAS from  Copyright I/O International, 2001, 2005, 2008, 2012 Skip Intro Version.
© Paradigm Publishing, Inc Excel 2013 Level 2 Unit 2Managing and Integrating Data and the Excel Environment Chapter 6Protecting and Sharing Workbooks.
South Dakota Library Network MetaLib User Interface South Dakota Library Network 1200 University, Unit 9672 Spearfish, SD © South Dakota.
Presentation transcript:

Introduction to Database Development (1) IS 240 – Database Management Lecture #3 – Prof. M. E. Kabay, PhD, CISSP Norwich University

2 Copyright © 2004 M. E. Kabay. All rights reserved. Topics: Kroenke Chapter 2 Database DBMS Creating a DB Application Components DB Development Homework

3 Copyright © 2004 M. E. Kabay. All rights reserved. Database: Types of Data User Data: information we care about Metadata: information about the data Indexes: information for fast access to data Application Metadata: information for showing and using data

4 Copyright © 2004 M. E. Kabay. All rights reserved. Types: User Data Your student information: Student_name Student_ID Student_home_address Student_residence_address Student_residence_address_term Student_grad_year Student_major Student_major_year Course_number Course_term Course_title Course_instructor Course_credits Course_grade....

5 Copyright © 2004 M. E. Kabay. All rights reserved. Types: User Data How to group data effectively to represent course information? 1.One big record: Student_id, student_home_address, student_major, course_term, A record for student-specific info + a record for residence info + a record for course-specific info + linkages (relationships) Student_name, Student_ID, Student_home_address.... Student_ID, Student_residence_address, Student_residence_address_term Student_ID, Course_number, Course_term, Course_grade.... Course_number, Course_term, Course_title, Course_instructor, Course_credits.....

6 Copyright © 2004 M. E. Kabay. All rights reserved. User Data Examples from instructors own simple databases TODO – keeps track of things to do IYIR – keeps abstracts of security events

7 Copyright © 2004 M. E. Kabay. All rights reserved. (User data: TODO)

8 Copyright © 2004 M. E. Kabay. All rights reserved. (User data: IYIR)

9 Copyright © 2004 M. E. Kabay. All rights reserved. User Data Relationships First impressions of data requirements are usually too simple for realistic applications Think about what can change – may need to create records to keep track of history; e.g., ____? Think about relationships among data Relationships among data may be 1:1 (one-to-one); e.g., _____? 1:n (one-to-many) ; e.g., _____? n:n (many-to-many) ; e.g., _____? Bad designs lead to duplication, trouble in updates Normalization (to be studied later) provides systematic method for sorting out data into records with minimal trouble

10 Copyright © 2004 M. E. Kabay. All rights reserved. Types Metadata Information about the data and their relationships Application Metadata Forms, reports Varies among products

11 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: TODO)

12 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: TODO)

13 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: IYIR)

14 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: IYIR)

15 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: IYIR)

16 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: IYIR)

17 Copyright © 2004 M. E. Kabay. All rights reserved. (Metadata: IYIR)

18 Copyright © 2004 M. E. Kabay. All rights reserved. (Forms)

19 Copyright © 2004 M. E. Kabay. All rights reserved. (Forms)

20 Copyright © 2004 M. E. Kabay. All rights reserved. (Forms)

21 Copyright © 2004 M. E. Kabay. All rights reserved. (Reports)

22 Copyright © 2004 M. E. Kabay. All rights reserved. (Reports)

23 Copyright © 2004 M. E. Kabay. All rights reserved. (Reports)

24 Copyright © 2004 M. E. Kabay. All rights reserved. Types: Indexes Large databases can contain millions of records Without index, need to search all records Can take seconds, minutes or hours All depends on speed of I/O:

25 Copyright © 2004 M. E. Kabay. All rights reserved. DBMS Design Tools Run-Time DBMS Engine

26 Copyright © 2004 M. E. Kabay. All rights reserved. DBMS: Design Tools

27 Copyright © 2004 M. E. Kabay. All rights reserved. DBMS: Run-Time Infrastructure that runs the database Handles designer/user requests for database changes, data input/output Handles all the details of opening, accessing, modifying information Reads structure metadata to interpret linkages Reads form metadata to represent information readably Produces and prints reports automatically

28 Copyright © 2004 M. E. Kabay. All rights reserved. DBMS: DBMS Engine Turns instructions from DBMS run-time components into instructions to operating system Translates dataset names into file names Handles file I/O Handles transactions Manages locking of resources Communicates with other OS subsystems Input devices – keyboards, mouse Display units – screens Spooler – sends print output to printer

29 Copyright © 2004 M. E. Kabay. All rights reserved. Creating a DB Schema Tables Relationships

30 Copyright © 2004 M. E. Kabay. All rights reserved. Creating a DB: Schema Define all aspects of the needed data Specify names of Fields (columns) Records (table rows) Decide on domains for every field Physical format (length, types) Allowable values Empty(null) allowed? Unique? Define relations (links) among tables

31 Copyright © 2004 M. E. Kabay. All rights reserved. Creating a DB: Tables Turn specifications into real tables DBMS automatically handles details

32 Copyright © 2004 M. E. Kabay. All rights reserved. Creating a DB: Relationships Specify how to link tables Requires common fields Specify type of relationship 1:1 1:n m:n

33 Copyright © 2004 M. E. Kabay. All rights reserved. Application Components Will study details later Forms Queries Reports Menus Programs

34 Copyright © 2004 M. E. Kabay. All rights reserved. Forms Show data in different ways for different functions Lookup Data entry Data management (modification) Many different forms can exist in a single DB Can define fields that have different characteristics Read-only Specific input-values only Generate specific error messages or confirmations

35 Copyright © 2004 M. E. Kabay. All rights reserved. Queries Ask questions about data Planned – stored queries Ad hoc – defined on the spot Various methods SQL – Structured Query Language Sometimes pronounced sequel Often pronounced S – Q – L Visual methods – drag and drop Query-by-example (QBE) – specify requirements, then store query Query-by-form – designer supplies form, user inputs specific data

36 Copyright © 2004 M. E. Kabay. All rights reserved. Reports Formatted output for printers Typical banded structure Report header Page header Detail Page footer Report footer Many different report structures can be named and stored for a single DB

37 Copyright © 2004 M. E. Kabay. All rights reserved. Menus Windows / Mac visual interface has made drop-down menus familiar Can create application-specific menus Provide shortcut-keys if desired Menus can change from stage to stage of users progress through application program

38 Copyright © 2004 M. E. Kabay. All rights reserved. Programs DBMS usually include facilities for special controls (programs) Can define actions for anything that can be specified in syntax of programming language for DBMS Often highly portable across platforms as long as same DBMS used Can also write standalone programs that access database files in various languages Need application program interface (API) May not be easily portable from platform to platform

39 Copyright © 2004 M. E. Kabay. All rights reserved. DB Development Prototypes Top-down design/development Bottom-up design/development Data modeling

40 Copyright © 2004 M. E. Kabay. All rights reserved. Development: Prototypes SDLC (System Development Life Cycle) Analysis Specifications Design Coding Testing Documentation Implementation Sometimes takes too long Code is out of date by time its implemented

41 Copyright © 2004 M. E. Kabay. All rights reserved. Development: Prototypes Rapid Application Development (RAD) Joint Application Development (JAD) Show user mockup of application Helps to improve communications among users, analysts, programmers, trainers Modern DBMS ideal for prototyping Easy forms & reports for I/O Can include constraints easily and write good error messages quickly Write one to throw away: learn from mistakes

42 Copyright © 2004 M. E. Kabay. All rights reserved. Development: Top-down Design/Development Thorough analysis of requirements Plan carefully, looking at strategic issues first Develop data models of ever-more detail Advantages Reduce wasted effort, rewriting of code Expandable to new requirements because of systematic understanding Disadvantages Slow to reach production code May be inflexible in rapidly-changing area

43 Copyright © 2004 M. E. Kabay. All rights reserved. Development: Bottom-up Design/Development Start with specific project Often small-scale Consistent with RAD/JAD Build up from existing project by adding others as required Advantages Can be rapid to meet needs Consistent with Pareto Principle: meet 80% of needs with first 20% of development Disadvantages Can lead to false starts, reworking, difficult integration of different systems

44 Copyright © 2004 M. E. Kabay. All rights reserved. Development: Data Modeling Complex, sophisticated process Observe what people do as well as what they say about their information needs Users do not know how to represent data in data structures Have to see what they need to construct models But what they do now may not be the best for them – limited by current tools Good communications skills essential

45 Copyright © 2004 M. E. Kabay. All rights reserved. Homework Reread Chapter Two of Kroenke using Read- Recite-Review For Thu the 29th of January 2004 Answer questions 2.1 through 2.21 in writing For Tue the 27th Prepare for lab work on by running MS- ACCESS on a lab computer (or your own) Finish Ferrett et al Projects #1 & #2 Look ahead to Ferrett Projects #3 & #4

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