PT2520 Unit 1: Database Concepts

Slides:



Advertisements
Similar presentations
IT203 Unit 1: Database Concept
Advertisements

Chapter 1 Getting Started with Access Databases. Objectives Identify Good Database Design Create a Table and Define Fields in a New Blank Database Change.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
INSERT BOOK COVER 1Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
By Mary Anne Poatsy, Keith Mulbery, Eric Cameron, Jason Davidson, Rebecca Lawson, Linda Lau, Jerri Williams Chapter 8 Get Connected 1 Copyright © 2014.
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall.
Getting Started (Excerpts) Chapter One DAVID M. KROENKE’S DATABASE CONCEPTS, 2 nd Edition.
With Microsoft Access 2010© 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Access.
Information Technology in Organizations
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 5 th Edition.
Getting Started with Microsoft SQL Server 2012 Express Edition Appendix A DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
David M. Kroenke and David J. Auer Database Processing—12 th Edition Fundamentals, Design, and Implementation Chapter One: Introduction KROENKE AND AUER.
Getting Started Chapter One DATABASE CONCEPTS, 7th Edition
Copyright ©2014 Pearson Education, Inc. Chapter 3 Requirements and Business Rules Chapter3.1.
Getting Started with Oracle Database 11g Release 2 Express Edition Appendix B DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 6 th Edition.
Computers Are Your Future Tenth Edition Chapter 12: Databases & Information Systems Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall1.
1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith Mast, and Mary Anne.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. Access Module 1 Workshop 1 The Four Main Database Objects Series Editor Amy Kinser.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Access 2010 by Robert Grauer, Keith Mast,
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Excel 2010 by Robert Grauer, Keith.
INSERT BOOK COVER 1Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall. Exploring Microsoft Office Access 2010 by Robert Grauer, Keith.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
DATABASE DEVELOPMENT Overview. Definitions A Database is a structured collection of related data (not necessarily electronic) A Relational database is.
Copyright ©2014 Pearson Education, Inc. Chapter One Who Needs a Database? Chapter1.1.
Dimu' Rumpak © 2009 by Prentice Hall 1 Getting Started Didimus Rumpak, M.Si. Database Concepts Chapter 1 1.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
1 Copyright © 2010 Pearson Education, Inc. Publishing as Prentice Hall.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Chapter Six Competitor Analysis and Sources of Advantage.
Getting Started Chapter One DAVID M. KROENKE and DAVID J. AUER DATABASE CONCEPTS, 4 th Edition.
Skills for Success with Microsoft Office 2013 Volume 1 Copyright © 2014 Pearson Education, Inc. Publishing as Prentice Hall. by Kris Townsend, Catherine.
Introduction to Databases Three File Processing Systems DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 1-2.
With Microsoft Excel 2010 © 2011 Pearson Education, Inc. Publishing as Prentice Hall1 PowerPoint Presentation to Accompany GO! with Microsoft ® Excel 2010.
© 2012 Pearson Education, Inc. publishing Prentice Hall. Note 9 The Product Life Cycle.
Chapter 3 Requirements and Business Rules Copyright © 2012 Pearson Education, Inc. Publishing as Prentice HallChapter3.1.
GO! with Office 2013 Volume 1 By: Shelley Gaskin, Alicia Vargas, and Carolyn McLellan Access Chapter 1 Introduction to Microsoft Access 2013.
© 2012 Pearson Education, Inc. publishing Prentice Hall. Note 18 Generic Strategies—The Value Map.
© 2012 Pearson Education, Inc. publishing Prentice Hall. Note 16 What is a Marketing Strategy?
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Chapter One: Introduction.
David M. Kroenke and David J. Auer Database Processing: Fundamentals, Design, and Implementation Chapter Ten: Managing Databases with SQL Server 2012,
Copyright © 2011 Pearson Education, Inc. Publishing as Prentice Hall Process Specifications and Structured Decisions Systems Analysis and Design, 8e Kendall.
Databases and DBMSs Todd S. Bacastow January
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Exploring Microsoft Office Access 2007
GO! with Microsoft Office 2016
Exploring Microsoft Office Access 2007
David M. Kroenke and David J
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
GO! with Microsoft Access 2016
Chapter 4 Relational Databases
ICT Database Lesson 1 What is a Database?.
Database Management  .
GO! with Microsoft® Access e
David M. Kroenke and David J
Basic Concepts in Data Management
MANAGING DATA RESOURCES
PT2520 Unit 2: Gather Information and Define Requirements
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall
MANAGING DATA RESOURCES
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall
What is a Marketing Strategy?
Copyright © 2018, 2015, 20 Pearson Education, Inc. All Rights Reserved Database Concepts Eighth Edition Chapter # 2 The Relational Model.
DATABASES WHAT IS A DATABASE?
Chapter 17 Designing Databases
Getting Started Chapter One DATABASE CONCEPTS, 5th Edition
Chapter 1 Introduction to Database Processing
Getting Started Chapter One DATABASE CONCEPTS, 4th Edition
CHAPTER 5 THE DATA RESOURCE
Presentation transcript:

PT2520 Unit 1: Database Concepts Who Needs a Database? Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Database Overview A database is a set of related data. An old-style library catalog, a Rolodex or an address book are all databases. Usually we use the term “database” to refer to electronic databases. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Flat File Databases The simplest electronic database structures are flat file structure. Flat file means that the data is stored in a single file. These files can be Delimited Fixed length In a spreadsheet application Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Delimited In a delimited file, each piece of data is separated from the others by a delimiter such as a comma or a semicolon. Delimited files are commonly used to transfer data from one data source to another. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Example: Comma Delimited File Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Fixed Length Files In fixed length, each piece of data is allotted a particular length in characters. All fields have the same length. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Spreadsheets Spreadsheets such as Microsoft’s Excel provide a more sophisticated form of flat file database. Spreadsheets often contain additional database tools to help sort and filter data. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Spreadsheet Example Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Disadvantages of Flat File Databases Difficult to query and find information Data redundancy – information is repeated and can be inconsistent Difficult to compare data across files Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Hierarchical Databases Hierarchical databases are organized in a tree-like structure. One parent table can have many child tables but no child table can have more than one parent. One analogy is the file system in an operating system like Windows. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Diagram of a Hierarchical Database Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Hierarchical Advantages and Disadvantages Easy to navigate and understand Fast to process Data redundancy Difficult to compare data between branches Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Relational Databases Relational databases were designed to solve the problems with flat files and Hierarchical databases. The idea for relational databases was developed by Edgar F. Codd at IBM in 1970. He based the relational design on set theory and predicate logic. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Codd’s 12 Rules Codd formulated the principles of relational databases in a document called “Codd’s 12 Rules.” There are actually 13 rules because they begin with 0. These rules can be found at http://en.wikipedia.org/wiki/Codd's_12_rules. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Nature of Relational Databases All data, even data about data such as a table and column names, are stored in tables. Each row in a table should have a column (or columns) that uniquely identifies it, a primary key. This primary key is repeated in other tables to create a relationship. When it is repeated, it is known as a foreign key. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Related Tables CustomerID(PK) LastName FirstName Address City State C41098X3 Carson Lewis 121 Center Street Seattle WA CV1099B1 Madison Sarah 1324 Broadway D345XU24 Brown Lisa 2201 Second Ave TransactionID TransactionType TransactionDate CustomerID(FK) Amount 10002345 Deposit 2009-2-12 10:25:06 C41098X3 1245.76 10002346 2009-2-12 10:27:13 CV1099B1 500.00 10002347 Withdrawel 2009-2-13-14:45:57 200.00 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall SQL Codd said that a relational database should have a sublanguage that can manage all data manipulations as well as DBMS processes such as security and backup. SQL has become that language. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Example SQL Query Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Relational Database Management Systems (RDMS) A RDMS is software that manages relational databases. It must allow for the creation and maintenance of databases. It usually has tools for backup and restoring databases. It usually has tools for securing access to database objects. It may have many other administrative and reporting tools. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Table of Popular DBMSs RDBMS Comments URL ORACLE The first commercial RDMS and the biggest. Powers many of the world’s largest companies http://www.Oracle.com   SQL Server Microsoft’s RDMS product. Ships in many versions designed for different company needs. Also powers many large enterprises http://www.microsoft.com/sql/default.mspx DB2 IBMs RDBMS http://www306.ibm.com/software/data/db2/9/ MySQL The most popular Open Source RDBMS currently owned by SUN http://www.MySql.com PostGres SQL Another free, Open source RDBMS. It is older and some would say more powerful than MySQL http://www.postgresql.org/ ACCESS Microsoft’s Desktop Database http://office.microsoft.com/en-us/access/default.aspx?ofcresset=1 Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Opportunities for Database Development Many small businesses and nonprofits have outgrown storing their data on paper or in spreadsheets. They have too much data to handle manually. They need to retrieve information quickly. They need to compare different pieces of information. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Initial Interview The goal of the initial interview is to get the broad scope of the database project. Always prepare for an interview. Have questions ready that help those being interviewed focus on the important questions. Don’t guide them toward any preconceived notions of the database. Your task is to understand their needs. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Identifying the Big Topics Review all your materials and identify the nouns. See if the nouns cluster into themes, that is if several of them relate to the same general subjects, such as “customer” or “sale.” These themes will probably become “Entities” in your database. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Statement of Work Once you have an overview and have agreed to the project, you can work on a statement of work. The client may prepare one for you or you may need to prepare one. It is important to put these initial expectations in writing. A statement of work consists minimally of A history A scope Objectives Tasks and timeline Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall History The history is the review of the problem the database is meant to solve. It may detail: how data was handled previously why the method is no longer acceptable It may also list the steps that led to the decision to begin the new project (reviews, consultants, etc.). Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Scope The scope provides the range of the project. Without getting into specifics it should list all the broad requirements of the project. It may also list constraints, things the project will not include. The scope provides an important touchstone as the project proceeds. Everyone can refer back to it and ask does this element belong to the scope of this project or not. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Objectives Stating objectives can be useful to keep clear what the purpose of the project is. The scope lists what will be included in the project; the objectives list why they are in the project. Ideally they are things that can be verified so that one can say, “yes, this is done” or “no, this isn’t finished yet.” Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Tasks and Timeline Although it is at a very early stage in the development process, it is good to set a preliminary time line and to define the tasks that should be accomplished within those times. It forces everyone to think through the process and define what steps are involved. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Estimating Times It is very difficult to estimate times until you have a fair amount of experience. One strategy is to think about how long the task would take if everything went right. Next think about how long it would take if everything went wrong. Thirdly estimate how long you think it will most likely take and then move it a bit toward the worst-case-scenario estimate. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall Documentation Documentation is essential to the development process. With a database there are two main things that need to be documented: The structure of the database itself. The process by which the database was developed. You should keep a notebook that stores all related documents and that records all relevant decisions regarding the database. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall

Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall All rights reserved. No part of this publication may be reproduced, stored in a retrieval system, or transmitted, in any form or by any means, electronic, mechanical, photocopying, recording, or otherwise, without the prior written permission of the publisher. Printed in the Chaptered States of America. Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall