Announcements Project 2 is due on Tuesday 8/3/04 late projects will not be accepted. Test 4 is on Thursday 8/5/04. There will be an extra lab session this.

Slides:



Advertisements
Similar presentations
Chapter 15 A Table with a View: Database Queries.
Advertisements

Introduction for Clinical Database 陳勁辰2003/06/02.
1 1 File Systems and Databases. 1 1 Introducing the Database 4Major Database Concepts u Data and information l Data - Raw facts l Information - Processed.
IS605/606: Information Systems Instructor: Dr. Boris Jukic
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
Chapter Chapter 13-2 Chapter 13 Data Modeling Introduction An Overview of Databases Steps in Creating a Database Using Rea Creating Database Tables.
Chapter 2 Data Models Database Systems: Design, Implementation, and Management, Seventh Edition, Rob and Coronel.
1 The Information School of the University of Washington Nov 27fit databases © 2006 University of Washington Database Intro INFO/CSE 100, Fall 2006.
Organizing Data & Information
LIS 557 Database Design and Management William Voon Michael Cole Spring '04.
1 The Information School of the University of Washington Nov 29fit forms © 2006 University of Washington More Forms INFO/CSE 100, Fall 2006 Fluency.
1004INT Information Systems Week 11 Databases as Business Tools.
Databases and modelling 1. day. 2 Agenda Goals Plan What is database? How is database developed and designed? Database design.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
Database Design Overview. 2 Database DBMS File Record Field Cardinality Keys Index Pointer Referential Integrity Normalization Data Definition Language.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1.
DATA, DATABASES, AND QUERIES Managing Data in Relational Databases CS1100Microsoft Access - Introduction1 Created By Martin Schedlbauer
Chapter 11 Databases.
Chapter 5 Database Processing.
2.3 Organising Data for Effective Retrieval
Database Systems Marcus Kaiser School of Computing Science Newcastle University.
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Relational DB Components
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
CS 474 Database Design and Application Terminology Jan 11, 2000.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 Welcome: To the second learning sequence “ Data Base (DB) and Data Base Management System (DBMS) “ Recap : In the previous learning sequence, we discussed.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
MIS 301 Information Systems in Organizations Dave Salisbury ( )
311: Management Information Systems Database Systems Chapter 3.
Chapter 16 HAI! Adventure Database: Case Study in Database Design.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Logical Database Design (1 of 3) John Ortiz Lecture 6Logical Database Design (1)2 Introduction  The logical design is a process of refining DB schema.
Programming in R SQL in R. Running SQL in R In this session I will show you how to: Run basic SQL commands within R.
Database revision.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Fluency with Information Technology INFO100 and CSE100 Katherine Deibel Katherine Deibel, Fluency in Information Technology1.
Chapter 1: Introduction. 1.2 Database Management System (DBMS) DBMS contains information about a particular enterprise Collection of interrelated data.
Data Modeling AND ER MODELS.
Databases Databases are collections of information; our study repeats a theme: Tell the computer the structure, and it can help you! © 2004, Lawrence Snyder.
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
CS4222 Principles of Database System
A Table with a View: Database Queries
Announcements Project 2’s due date is moved to Tuesday 8/3/04
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Database Design Hacettepe University
A Table with a View: Database Queries
INFO/CSE 100, Spring 2006 Fluency in Information Technology
A Table with a View: Database Queries
Presentation transcript:

Announcements Project 2 is due on Tuesday 8/3/04 late projects will not be accepted. Test 4 is on Thursday 8/5/04. There will be an extra lab session this Saturday 7/31/04 from 8:00 to 12:00 if anyone is interested. Assignment 11 is due. Tip of the Day : When building a database, build the GUI last.

Thinking of Databases Databases are organized on two levels: ‘physical’ is how the data is stored, ‘logical’ is how it’s viewed © 2004 Lawrence Snyder

Big Picture A database is made of …  Physical database -- tables actually stored on the hard disk  Logical database -- created on-the-fly virtual tables specified by...  Queries -- [programs written in SQL that] define how to make a logical table from physical tables  GUIs -- the interface for users to DBs

Avoiding Redundancy Redundancy is bad because it can lead to inconsistent data … very bad! Keep only one copy of any data … does that make it right??? Rather than repeating data, reference it in the places where it is needed - Keep data in its own table - Save its key wherever it is needed When users want the data, get it using its key!

Physical Database Physical databases store data in the “best” way -- no redundancy,... Expect many tables of “simple” entities “Physical” means that the data is actually stored on the disk -- contrast with logical DBs that are “virtual tables” Physical databases are designed “for the computer” not for the user The “physical schema” gives table definitions and the relationships

Relationships The table data entries are not just text & numbers, but they have meaning Relationships spell out that meaning Faculty Student Advisor FacultyStudent One-to-many relationship

Kinds of Relationships One-to-One One-to-Many Many-to-Many DormStudent 1:N FacultyParking Permit 1:1 StudentClub N:M Name relationships by their meaning

Logical Databases Users want & need different information Different tasks require different information Different authority levels, e.g. need to know Customizing to users means everyone sees exactly what they need to see  A view is a user’s customized database  Views are virtual, built on-the-fly from the physical database and not kept Data is always current Custom structure can be very adaptable

Queries Queries are commands (using the 5 table operations) that create logical database (views) from physical Select(Project(+ -  )) Physical Logical Query Tables produced by queries are just tables

SQL The structured query language is the industry standard query language “Structured” means the queries have a standard form Common clauses -- SELECT FROM INNER JOIN ON WHERE Like Project! SQL is not case sensitive

Sample Database Define a university DB schema ER Diagram Specifying a 1-to-many relationship Faculty Fac_ID FirstN LastN Dept Hired Key:Fac_ID Student S_ID FirstN LastN MajorID Advisor Key:S_ID  1 FacultyStudent

Sample SQL Queries Typical: SELECT FROM SELECT Student.FirstN, Student.LastN, Student.MajorID FROM Student WHERE Student.S_ID= ; SELECT Student.FirstN, Student.LastN FROM Student WHERE MajorID=14;

Join Example Find the students of a given professor SELECT Student.FirstN, Student.LastN, Faculty.LastN FROM (Student INNER JOIN Faculty ON Student.Advisor = Faculty.Fac_ID) Notice that selection comes from the combined (by Inner Join) table

DB Design Paradigm Guidelines for good databases: Build physical DB to avoid redundancy, etc Each physical table represents 1 entity Expect that no physical table gives any user their exact view To build view, build a query that... Joins tables together into a ‘super’ table Trims out only the items the user wants These guidelines are not an algorithm, but they usually produce good results

Project 3: SLAMA Design DB to support a small mythical WA town’s police department … “San Lucas Arrest Monitoring Application” The DB keeps track of suspects, police, and arrests. It monitors the blood alcohol and drug testing process while protecting the privacy of the citizens You will create the DB in MS Access, including tables, queries, forms and reports

What Happens??? When someone is arrested for drunk driving, what happens? For Monday, find out …

Defining Tables The physical database is a collection of (3-4) tables

Filling Tables Things are slow in San Lucas, so you will have to generate data

Defining Queries The logical database (views) remove data from tables for users We can write SQL directly, or we can use Query By Example

GUIs For The Views The GUIs (forms) for users must be neat and attractive, with a slogan

Tracking Number To protect privacy, lab samples are not coded with suspect’s name

The Summary A database is made of …  Physical database -- tables actually stored on the hard disk  Logical database -- created on-the-fly virtual tables specified by...  Queries -- [programs written in SQL that] define how to make a logical table from physical tables  GUIs -- the interface for users to DBs