Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities.

Slides:



Advertisements
Similar presentations
Chapter 7 © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey A. Hoffer, V. Ramesh, Heikki Topi.
Advertisements

Chapter 10: Designing Databases
Chapter 15 A Table with a View: Database Queries.
The Relational Database Model
Relational Databases Chapter 4.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
ACCESS PART 2. Objectives Database Tables Table Parts Key Field Query and Reports Import from Excel Link to Excel.
Chapter 2 The Relational Database Model
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
BUSINESS DRIVEN TECHNOLOGY
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Inner join, self join and Outer join Sen Zhang. Joining data together is one of the most significant strengths of a relational database. A join is a query.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 15 Introduction to Database Concepts. Copyright © 2013 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Learning Objectives Explain.
The Relational Database Model
Database Relationships Objective 5.01 Understand database tables used in business.
Chapter 16 (p481 – 485, ) Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
Introduction to SQL Steve Perry
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Principles of Database Design, Part II AIMS 2710 R. Nakatsu.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
CMPE 226 Database Systems September 16 Class Meeting Department of Computer Engineering San Jose State University Fall 2015 Instructor: Ron Mak
SQL Structured Query Language Programming Course.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
ACCESS CHAPTER 4 Tables and Queries Learning Objectives: Define table structure Enter data into a table Alter table structure Set a table’s field properties.
CS 1308 Computer Literacy and the Internet
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
PowerPoint Presentation for Dennis, Wixom, & Tegarden Systems Analysis and Design with UML, 3rd Edition Copyright © 2009 John Wiley & Sons, Inc. All rights.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
+ Information Systems and Databases 2.2 Organisation.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Relational Theory and Design
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Database Basics BCIS 3680 Enterprise Programming.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Databases and ADO.NET Programming Right from the Start with Visual Basic.NET 1/e 11.
3 1 Database Systems The Relational Database Model.
Database: SQL, MySQL, LINQ and Java DB © by Pearson Education, Inc. All Rights Reserved.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Database Relationships Objective 5.01 Understand database tables used in business.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
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.
Copyright © 2014 Pearson Canada Inc. Ext. 5b-1 Copyright © 2014 Pearson Canada Inc. Application Extension 5b Using Microsoft Access Part 2: Using Information.
 2012 Pearson Education, Inc. All rights reserved.
Chapter 12 Information Systems.
A Table with a View: Database Queries
Lecture 2 The Relational Model
CSCI-100 Introduction to Computing
Chapter 4 Relational Databases
Databases and Information Management
Chapter 3 The Relational Database Model
Databases and Information Management
A Table with a View: Database Queries
A Table with a View: Database Queries
Presentation transcript:

Created by, Author Name, School Name—State FLUENCY WITH INFORMATION TECNOLOGY Skills, Concepts, and Capabilities

Copyright © 2003 Pearson Education, Inc. Slide 1-2 Figure The constituents of a database table: (a) the table structure, (b) unordered entities with their unordered attributes, (c) the rows of the whale table.

Copyright © 2003 Pearson Education, Inc. Slide 1-3 The Key to it All > A key is one or more fields which uniquely identify one row in a table. > A key is like a handle that we use to randomly access one entity’s information. > A key can also be used to tie two tables together. > Another term for key is primary key.

Copyright © 2003 Pearson Education, Inc. Slide 1-4 Queries > Queries provide us with different ways to view the database. > Customize the view to our specific needs. > Physical database – The tables and all of the fields. > Logical database – The views provided by the queries and forms. > Must have a physical database before we can make the logical.

Copyright © 2003 Pearson Education, Inc. Slide 1-5 DESIGNING THE PHYSICAL DATABASE > Redundancy Is Bad, Very, Very, Very Bad > Keep Only One Copy of Information > Keep a Separate Table and a Key to link > If two tables have the same primary key, should they be the same table? — yes if they also contain the same population — no if one table is a sub-population of the other — Student and Student Employee — Look for redundancy between data.

Copyright © 2003 Pearson Education, Inc. Slide 1-6 Figure Another form of an ER diagram typical of database software.

Copyright © 2003 Pearson Education, Inc. Slide 1-7 Figure Fields of the Master_Record table. See page 378/79

Copyright © 2003 Pearson Education, Inc. Slide 1-8 THE DATABASE SCHEMA > Connecting Database Tables by Relationship > Using the Join Operation > Designing a Database Schema > Physical vs. Logical Database

Copyright © 2003 Pearson Education, Inc. Slide 1-9 Figure A diagram showing the Lives_At relationship.

Copyright © 2003 Pearson Education, Inc. Slide 1-10 QUERIES: CREATING VIEWS > Creating a Dean’s View > Creating a Sport’s Center View

Copyright © 2003 Pearson Education, Inc. Slide 1-11 Figure The Dean’s View; information from several tables.

Copyright © 2003 Pearson Education, Inc. Slide 1-12 Figure The fields and sources for the sports center’s view; information drawn from three physical tables.

Copyright © 2003 Pearson Education, Inc. Slide 1-13 Physical database > The physical database provides — All of the data — Protection of the data — type — reference — validation — defaults — Relationship of the tables to one another

Copyright © 2003 Pearson Education, Inc. Slide 1-14 Creating a database > Think in terms of the entities in your “world” > Simulate those entities by defining the data > For example, if you had a database of library books, what would the entities be? > Each entity becomes a table and we need to find out how they are related.

Copyright © 2003 Pearson Education, Inc. Slide 1-15 Let’s look at the database of movies > Field > Attributes of fields — type — size — format — default value — validity rules — required

Copyright © 2003 Pearson Education, Inc. Slide 1-16 How do you decide what fields > Data should not be derived > Birthdate is good; age is not > Think about how you will use the data you are collecting downstream. > Do you need a key, or will one or more fields serve as the key?

Copyright © 2003 Pearson Education, Inc. Slide 1-17 Foreign key > The relationship between two tables is accomplished through common elements. > You can choose how to implement the relationship. > Referential integrity is the validation of one table against the contents of another. > Requires that only values that have already been established in one table (where the primary key is) are used in another.

Copyright © 2003 Pearson Education, Inc. Slide 1-18 Example > Movies and directors > If referential integrity is established only directors on the director table can be attached to a movie.

Copyright © 2003 Pearson Education, Inc. Slide 1-19 Joins can be used for other purposes as well. > We will look at operations on tables.

Copyright © 2003 Pearson Education, Inc. Slide 1-20 OPERATIONS ON TABLES > Select Operation > Project Operation > Union Operation > Difference Operation > Product Operation > Join Operation

Copyright © 2003 Pearson Education, Inc. Slide 1-21 Figure The Nations table definition and sample entries. pg 361

Copyright © 2003 Pearson Education, Inc. Slide 1-22 Structured Query Language > SQL – abbreviation > Standard way of communicating with a database.

Copyright © 2003 Pearson Education, Inc. Slide 1-23 Select OPERATION > A selection is performed to choose to view only certain entities from a table. > A selection uses “selection criteria” to choose which rows. > Let’s look at another example…movies. > where clause

Copyright © 2003 Pearson Education, Inc. Slide 1-24 Figure Part of the table created by selecting countries with the Test that the one-word description equals Beach.

Copyright © 2003 Pearson Education, Inc. Slide 1-25 Project – Pronounced project’. > Choose to display only certain columns from the table. > Usually, you use both selection to limit the rows and projection to limit the fields displayed. > Select clause.

Copyright © 2003 Pearson Education, Inc. Slide 1-26 Figure Sample entries for a Project operation on Nations.

Copyright © 2003 Pearson Education, Inc. Slide 1-27 Figure Northland, the table of countries with northern capitals.

Copyright © 2003 Pearson Education, Inc. Slide 1-28 How do these relate to Access? > Select = criteria (where clause in SQL) > Project = field choices (select clause in SQL) > sort is not an operation, but it is used to create a result set in the right format. Sort is a Order by clause in SQL

Copyright © 2003 Pearson Education, Inc. Slide 1-29 Union – another operation > Combines into a result set the combination of two or more tables. The columns are the same, but the records are the all unique rows of both tables.

Copyright © 2003 Pearson Education, Inc. Slide 1-30 Difference – another operation > Return a result set with is the difference between two tables. In other words, which records exist in one but not the other.

Copyright © 2003 Pearson Education, Inc. Slide 1-31 Product aka cross product > Combines two tables based on a common element. Includes the columns from both tables. > Is this useful? > Cohort of students taking a program. All students in Fall 2005 take the same 3 courses. A cross product of a student table and the 3 courses table would produce a table for all students taking these courses.

Copyright © 2003 Pearson Education, Inc. Slide 1-32 Figure The definition of the Travelers table (a), and its values (b).

Copyright © 2003 Pearson Education, Inc. Slide 1-33 Figure Some rows from the Super table, the product of Nations and Travelers ; for each row in Nations and each row in Travelers, there is a row in the product table that combines them.

Copyright © 2003 Pearson Education, Inc. Slide 1-34 Join > Allows two related tables to be “hooked together” based on a common element. > Equi-join – the joined table will have only those rows where there is at least one row from one table with a matching value on one row from the second table.

Copyright © 2003 Pearson Education, Inc. Slide 1-35 Figure The Join operation: Master Northland.

Copyright © 2003 Pearson Education, Inc. Slide 1-36 Figure ER diagram for the entities and relationships involving Home_Base.

Copyright © 2003 Pearson Education, Inc. Slide 1-37 Figure Another form of an ER diagram typical of database software.