Chapter 12.3+ Information Systems Database Management.

Slides:



Advertisements
Similar presentations
Entity Relationship (E-R) Modeling
Advertisements

1 Senn, Information Technology, 3 rd Edition © 2004 Pearson Prentice Hall James A. Senns Information Technology, 3 rd Edition Chapter 7 Enterprise Databases.
Advanced SQL Topics Edward Wu.
Chapter 1: The Database Environment
Copyright © 2003 Pearson Education, Inc. Slide 1 Computer Systems Organization & Architecture Chapters 8-12 John D. Carpinelli.
Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies,
Chapter 1 The Study of Body Function Image PowerPoint
BASIC SKILLS AND TOOLS USING ACCESS
Copyright © 2011, Elsevier Inc. All rights reserved. Chapter 6 Author: Julia Richards and R. Scott Hawley.
Author: Julia Richards and R. Scott Hawley
Relational Database and Data Modeling
FACTORING ax2 + bx + c Think “unfoil” Work down, Show all steps.
Year 6 mental test 10 second questions
Relational data objects 1 Lecture 6. Relational data objects 2 Answer to last lectures activity.
REVIEW: Arthropod ID. 1. Name the subphylum. 2. Name the subphylum. 3. Name the order.
Information Systems Today: Managing in the Digital World
Database Design Process
R ELATIONAL M ODEL TO SQL Data Model. 22 C ONCEPTUAL D ESIGN : ER TO R ELATIONAL TO SQL How to represent Entity sets, Relationship sets, Attributes, Key.
© Paradigm Publishing, Inc Access 2010 Level 1 Unit 1Creating Tables and Queries Chapter 2Creating Relationships between Tables.
Microsoft Office Illustrated Fundamentals Unit K: Working with Data.
Yong Choi School of Business CSU, Bakersfield
Microsoft Access.
Chapter 6 Data Design.
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.
VOORBLAD.
Factor P 16 8(8-5ab) 4(d² + 4) 3rs(2r – s) 15cd(1 + 2cd) 8(4a² + 3b²)
Chapter Information Systems Database Management.
© 2012 National Heart Foundation of Australia. Slide 2.
Lecture plan Outline of DB design process Entity-relationship model
Introduction to Databases
Understanding Generalist Practice, 5e, Kirst-Ashman/Hull
25 seconds left…...
Chapter 2 Entity-Relationship Data Modeling: Tools and Techniques
Chapter 10: The Traditional Approach to Design
Analyzing Genes and Genomes
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.
Chapter 12: Designing Databases
Chapter 15 A Table with a View: Database Queries.
Intracellular Compartments and Transport
PSSA Preparation.
Essential Cell Biology
14 Databases Foundations of Computer Science ã Cengage Learning.
Management Information Systems, 10/e
© Copyright 2011 John Wiley & Sons, Inc.
Chapter 12 Information Systems Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Chapter Information Systems Database Management.
Chapter 12 Information Systems Nell Dale John Lewis.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 12 Information Systems. Spreadsheets Databases 12-2.
Chapter 12 Information Systems. 2 Managing Information Information system Software that helps the user organize and analyze data Electronic spreadsheets.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
Introduction to Accounting Information Systems
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Chapter 12 Information Systems. 2 Managing Information Information system Software that helps the user organize and analyze data Electronic spreadsheets.
Chapter 12 Information Systems. 2 Chapter Goals Define the role of general information systems Explain how spreadsheets are organized Create spreadsheets.
CS 1308 Computer Literacy and the Internet
Dr. John P. Abraham, University of Texas Pan American Information Technology Database Dr. John P. Abraham.
Chapter 12 Information Systems.
Information Systems Database Management
Chapter 4 Relational Databases
Week 11: Database Management System
Data Model.
Presentation transcript:

Chapter Information Systems Database Management

2 Database Management Systems Database: A structured set of data. Database Management System: (DBMS) A combination of software and data, including: Physical database: a collection of files that contain the data. Database engine: software that supports access to and modification of the database contents. Database schema: a specification of the logical structure of the data stored in the database.

3 Database Management Systems Specialized database languages allow the user to: specify the structure of data; add, modify, and delete data; query the database to retrieve specific stored data.

4 Database Management Systems Figure 12.6 The elements of a database management system

5 Databases Databases are a recent development in the management of large amounts of data. As paper file systems were computerized each application was implemented separately with its own data set. These systems were riddled with both corrupt data and redundant data, none of which could be shared.

6 Databases The integration of separate systems into one database resolved these issues, but introduced new ones. With all data shared, control of access to the data becomes a major concern. Payroll doesnt need to see your grades.

7 Database Management Systems A schema is a description of the entire database structure used by the database software to maintain the database. A subschema is a description of only that part of the database that is particular to a users needs.

8 Database Management Systems A layered approach hides the complexities of database implementation. User sees data in terms of the application. The application sees data in terms of the database model. The DBMS sees data as it is organized.

9 Database Management Systems Advantages of the layered approach include: Simplification of the design process. Better control of access. Data Independence. Applications can be written in terms of simple, conceptual views of the data – the database model.

10 Database Models A database model is a conceptual view of how to organize and manipulate data. The most popular one is the Relational Model.

11 The Relational Model In a relational DBMS, the data items - and the relationships among them - are organized into rectangular tables. As with spreadsheets, these tables consist of rows and columns. Each table is called a relation. The rows are called tuples. The columns are called attributes.

12 The Relational Model Of course, different authors adopt different terms. There is a commonly used, alternate set of names: Relations are also called tables. A tuple can be referred to as a record, and in this terminology a record is a collection of related fields.

13 A Database Table Figure 12.7 Part of a database table, made up of records and fields

14 A Database Table We can express the schema for this database table as follows: Movie (MovieId:key, Title, Genre, Rating)

15 Another Database Table A partial CUSTOMER table.

16 Another Database Table We can express the schema for this table as: Customer (CustomerId:key, Name, Address, CreditCardNumber)

17 Relationships A table can represent a collection of relationships between objects. The RENTS table relates Customers to the Movies theyve rented by their respective Ids.

18 Relationships We can also express the schema for a relationship: Rents (CustomerId, MovieId, DateRented, DateDue) Note the absence of a key field.

19 Relational Operations There are 3 fundamental operations that can be used to manipulate the tables in a database: SELECT Extracts rows (tuples) from a table (relation) PROJECT Extracts columns (attributes) from a table (relation) JOIN Combines 2 tables (relations) into 1

20 Relational Operations The result of any relational operation is a new relation. We can express these operations with a simple syntax. NEW SELECT from MOVIE where RATING = PG This operation creates a new relation (named NEW) by extracting all rows from the MOVIE table that have a RATING of PG.

21 SELECT The NEW relation. MovieIdTitleGenreRating 102Back to the FutureComedy adventurePG 104Field of DreamsFantasy dramaPG

22 Relational Operations The same syntax can be used for the other operations. PGmovies PROJECT MovieId, Title from NEW This operation creates a new relation (named PGmovies) that extracts 2 attributes from the NEW relation.

23 PROJECT The PGmovies relation. MovieIdTitle 102Back to the Future 104Field of Dreams

24 Relational Operations A JOIN creates a new relation by combining 2 relations according to some criterion. TEMP1 JOIN CUSTOMER and RENTS where CUSTOMER.CustomerId = RENTS.CustomerId

25 JOIN

26 Relational Operations The PROJECT operation can be used to remove the attributes we dont want… RENTALS PROJECT Name, Address, MovieId from TEMP1

27 Relational Operations The RENTALS relation. NameAddressMovieId

28 Relational Operations Now, JOINing RENTALS to PGmovies… PGrenters JOIN RENTALS and PGmovies where RENTALS.MovieId = PGmovies.MovieId …creates a table of customers who have rented PG movies. NameAddressMovieId Title

29 Structured Query Language Structured Query Language (SQL) A comprehensive database language for managing relational databases.

30 Queries in SQL select attribute-list from table-list where condition select Title from MOVIE where Rating = 'PG' select Name, Address from CUSTOMER select * from MOVIE where Genre like '%action%' select * from MOVIE where Rating = 'R' order by Title

31 Modifying Database Content insert into CUSTOMER values (9876, 'John Smith', '602 Greenbriar Court', ' ') update MOVIE set Genre = 'thriller drama' where title = 'Unbreakable delete from MOVIE where Rating = 'R'

32 Database Design Entity-relationship (ER) modeling A popular technique for designing relational databases. ER Diagram Chief tool used for ER modeling. Captures the important record types, attributes, and relationships in a graphical form.

33 Database Design These designations show the cardinality constraint of the relationship Figure An ER diagram for the movie rental database