1 Review SQL Exercise: UPDATE StudentTable SET LetterScore = ’A’ WHERE Score >= ‘90’. Original Table: StudentTable StudentNumberStudentNameScoreLetterScore.

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

Chapter 5 Database Processing.
Accounting System Design
Introduction to Management Information Systems Chapter 4 Database Processing HTM 304 Fall 07.
Concepts of Database Management Sixth Edition
Database Processing Chapter 4.
Entity-Relationship Model and Diagrams (continued)
3-1 Chapter 3 Data and Knowledge Management
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
1004INT Information Systems Week 10 Databases as Business Tools.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Information Technology in Organizations
Concepts of Database Management Seventh Edition
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
Database Design.  Define a table for each entity  Give the table the same name as the entity  Make the primary key the same as the identifier of the.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Database Processing.
Using MIS 4e Chapter 5 Database Processing
File and Database Design SYS364. Today’s Agenda WHTSA DBMS, RDBMS, SQL A place for everything and everything in its place. Entity Relationship Diagrams.
Database Design Concepts
Web-Enabled Decision Support Systems
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts and Terminology Introduction to Database.
IE 423 – Design of Decision Support Systems Data modeling and database development.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Computer Science 101 Database Concepts. Database Collection of related data Models real world “universe” Reflects changes Specific purposes and audience.
CHAPTER EIGHT Accessing Data Processing Databases.
Component 4: Introduction to Information and Computer Science Unit 6: Databases and SQL Lecture 2 This material was developed by Oregon Health & Science.
Databases Topic 4 Text Materials Chapter 3 – Databases and Data Warehouses.
SQL Structured Query Language Programming Course.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
MS Access 2007 Management Information Systems 1. Overview 2  What is MS Access?  Access Terminology  Access Window  Database Window  Create New Database.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
1 CSE 2337 Introduction to Data Management Access Book – Ch 1.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. Adding a new field 1Right click the table name and select design view 2Type the field information at the end.
Data Driven Designs 99% of enterprise applications operate on database data or at least interface databases. Most common DBMS are Microsoft SQL Server,
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database revision.
Component 4/Unit 6b Topic II Relational Databases Keys and relationships Data modeling Database acquisition Database Management System (DBMS) Database.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
Foundations of Business Intelligence: Databases and Information Management.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
CSCI 3327 Visual Basic Chapter 13: Databases and LINQ UTPA – Fall 2011.
3.1 CSC 102 Introduction to Information Systems Databases.
Hoi Le. Why database? Spreadsheet is not good to: Store very large information Efficiently update data Use in multi-user mode Hoi Le2.
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
Creating E/R Diagrams with SQL Server Management Studio, Writing SQL Queries D0ncho Minkov Telerik School Academy schoolacademy.telerik.com Technical Trainer.
Visual Database Creation with MySQL Workbench 도시정보시스템 설계
Database Planning Database Design Normalization.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
Copyright © 2014 Pearson Canada Inc. 5-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5a Database Design Part 2: Using Information Technology.
Application Extension 5a
Chapter 12 Information Systems.
Databases and Information Management
© 2008 Pearson Prentice Hall, Experiencing MIS, David Kroenke
Presentation transcript:

1 Review SQL Exercise: UPDATE StudentTable SET LetterScore = ’A’ WHERE Score >= ‘90’. Original Table: StudentTable StudentNumberStudentNameScoreLetterScore 1000Justin Frank Dennis Wilson Sheldon Benson Gordon Black Jimmy Foxx96-- A A UPDATE StudentTable SET LetterScore = ’B’ WHERE Score >= ‘80’. B B B B The second command undermines the result of the first command

2 Database Development Process E-R Modeling: High level blueprint defining how data are stored structurally in the system Define users’ need through interview What to look for in the interview? How many entities? How the entities are related? (relationships)

3 Class 2: E-R Modeling and Database Lab E-R Data Model The most popular technique for creating a data model. E: entity (things) R: relationship (among the entities) + business rules restricting the flow of the data Data Model: Read Problem Solving Guide: (p89a) Immanuel Kant, Data Modeler Attempts to model the “real world” Simply a model of what the data modeler perceives

4 5 minutes free write Social Implications of DB: Relate any of Kant’s ideas to what you learned from reading “For Some, Online Persona Undermines Resume” PRINT your name on Free Write and hand it in

5 More exercise Book 23 a) Create a E-R Diagram to relate all the information in the form

6 Translating E-R diagram into Tables How to translate the three basic types of relationships into data tables and establish relationships? One to Many (1:N) Many to Many (N:M) One to One (1:1)

7 Translating E-R diagram into Tables (1:N) Step 1: Create one table for each entity Key

8 Translating E-R diagram into Tables (1:N) Step 2: Add Foreign Key Column to the “many entity” to represent relationship

9 Step 3: edit relationship Go to Tools  Relationships Add two entities Drag the “advisor name” of advisor table to the “advisor name” of student table. Close relationships

10 Many-to-Many Relationship Now the rule changed One advisor can supervise many students One student can have many adviser

11 Foreign Key doesn’t work for N:M relationship

12 Solution

13 Exercise: Revise the relationship of previous exercise in Access and input the above records

14 1:1 Relationship How to convert into tables?

15 Exercise Based on your E-R diagram in 23(a), construct tables and relationships in Access. Add at least three records for each table.

16 Importance of User Review Users are the final judges of what data the database should contain and how records relate to one another Easiest time to change database structure is during data modeling stage Once database has been constructed, loaded with data, and application forms, reports, queries, and application programs created, changing a relationship means weeks of work!

17 How should you review as a user? (Cont) When database developed for your use, you must carefully review data model If you don’t understand any aspect of it, ask for clarification until you do Data model must accurately reflect your view of business Do not proceed unless you are 100% comfortable with the model

18 Key Terms and Concepts Access DBMS one-to-many relationship Attribute E-R data model one-to-one relationship Byte Field Personal DBMS Column File (Table) Query Crow’s foot Foreign key Record Database Form Relationship Database application system Identifier Report DB2 Key Row DBMS Meta Data SQL E-R data model many-to-many relationship SQL Server Enterprise DBMS Oracle