11 INTRO TO DATABASES Part I IS 340 BY CHANDRA S. AMARAVADI.

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

MIS DATABASE SYSTEMS, DATA WAREHOUSES, AND DATA MARTS MBNA
Dr. Chandra Amaravadi Western Illinois University INTRO TO ENTERPRISE DATABASES - II.
Databases Chapter Distinguish between the physical and logical view of data Describe how data is organized: characters, fields, records, tables,
Chapter 3 Database Management
Database Management An Introduction.
Database Management: Getting Data Together Chapter 14.
Organizing Data & Information
Ch1: File Systems and Databases Hachim Haddouti
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
McGraw-Hill/Irwin Copyright © 2008, The McGraw-Hill Companies, Inc. All rights reserved.McGraw-Hill/Irwin Copyright © 2008 The McGraw-Hill Companies, Inc.
Introduction to Databases
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
MIS DATABASE SYSTEMS, DATA WAREHOUSES, AND DATA MARTS CHAPTER 3
Introduction to Database Management
Databases and Database Management Systems
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
INTRO TO DATABASES Part I IS 340 BY CHANDRA S. AMARAVADI.
CSI315CSI315 Web Development Technologies Continued.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2012 (September 5, 2012)
INTRO TO ENTERPRISE DATABASES - I Dr. Chandra Amaravadi Western Illinois University 1.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Module Title? DBMS Introduction to Database Management System.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Chapter 6: Foundations of Business Intelligence - Databases and Information Management Dr. Andrew P. Ciganek, Ph.D.
Management Information Systems By Effy Oz & Andy Jones
Organizing Data and Information AD660 – Databases, Security, and Web Technologies Marcus Goncalves Spring 2013.
Chapter 7: Database Systems Succeeding with Technology: Second Edition.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
1 Adapted from Pearson Prentice Hall Adapted form James A. Senn’s Information Technology, 3 rd Edition Chapter 7 Enterprise Databases and Data Warehouses.
311: Management Information Systems Database Systems Chapter 3.
Information Systems Today (©2006 Prentice Hall) 3-1 CS3754 Class Note 12 Summery of Relational Database.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
1 INTRO TO DATABASES PART II IS 340 BY CHANDRA S. AMARAVADI.
Database Design Part of the design process is deciding how data will be stored in the system –Conventional files (sequential, indexed,..) –Databases (database.
Lecturer: Gareth Jones. How does a relational database organise data? What are the principles of a database management system? What are the principal.
Discovering Computers Fundamentals Fifth Edition Chapter 9 Database Management.
MIS DATABASE SYSTEMS, DATA WAREHOUSES, AND DATA MARTS CHAPTER 3
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Information Systems & Databases 2.2) Organisation methods.
5-1 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies, Inc. All rights reserved.
5 - 1 Copyright © 2006, The McGraw-Hill Companies, Inc. All rights reserved.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
1 CS 430 Database Theory Winter 2005 Lecture 2: General Concepts.
INFO1408 Database Design Concepts Week 15: Introduction to Database Management Systems.
Database Systems Basic Data Management Concepts
Data resource management
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
DATA RESOURCE MANAGEMENT
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
Chapter 6.  Problems of managing Data Resources in a Traditional File Environment  Effective IS provides user with Accurate, timely and relevant information.
3/6: Data Management, pt. 2 Refresh your memory Relational Data Model
ASET 1 Amity School of Engineering & Technology B. Tech. (CSE/IT), III Semester Database Management Systems Jitendra Rajpurohit.
1 DATABASES – I IS 524 Dr. Chandra Amaravadi. 2 IN THIS PRESENTATION.. Importance of databases Real world concepts: entities, eclasses, attributes Data.
DATABASE EVOLUTION & ENVIRONMENT Chandra S. Amaravadi.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
The Need for Data Analysis 2 Managers track daily transactions to evaluate how the business is performing Strategies should be developed to meet organizational.
1 Management Information Systems M Agung Ali Fikri, SE. MM.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
McGraw-Hill/Irwin ©2008,The McGraw-Hill Companies, All Rights Reserved Chapter 5 Data Resource Management.
© 2017 by McGraw-Hill Education. This proprietary material solely for authorized instructor use. Not authorized for sale or distribution in any manner.
Management Information Systems by Prof. Park Kyung-Hye Chapter 7 (8th Week) Databases and Data Warehouses 07.
INTRO TO ENTERPRISE DATABASES - I
Databases Chapter 16.
DATABASES – I IS 524 Dr. Chandra Amaravadi.
MANAGING DATA RESOURCES
DATABASE TECHNOLOGIES
Chapter 3 Database Management
Presentation transcript:

11 INTRO TO DATABASES Part I IS 340 BY CHANDRA S. AMARAVADI

2 IN THIS PRESENTATION.. Data vs information Database organization file, record, attribute/field DBMS activities and functions DBMS components Importance of databases

3 DATA VS INFORMATION

4 DEFINING DATA AND INFORMATION Data: Data consists of raw facts e.g Information: Data presented in a context e.g. someone’s phone# Some more examples: a) IS340 a) IS340 is a core course for BBA. b) Joan Smith b) Joan Smith is an arts & sciences student c) Score was c) Score in the Celtics-Bulls game was

5 DATA IS NOT USUALLY ISOLATED Example information about a person Name: Steve Nash DOB: Profession: Basket ball player Address: 415 Walnut street. These describe a person more. They are called ????.

6 ANOTHER EXAMPLE Example information about a credit card transaction: Date: 12/5/08 Time: 4:48 pm Merchant: WIU Union Card type: Master Card Issuer: First Bank These describe a transaction more.

7 ONE ATTRIBUTE HAS A UNIQUE VALUE One of these is always unique: Acct#: Date: 12/5/08 Time: 4:48 pm Merchant: WIU Union Card type: Master Card Issuer: First Bank The unique attribute is called ???

8 CHARACTERISTICS OF DATA/ INFORMATION WHAT CAN WE SAY ABOUT THE TWO TYPES OF DATA? Transaction#: Date: 12/5/08 Time: 4:08 pm Merchant: WIU Union Card type: Master Card Issuer: First Bank Transaction#: Date: 12/5/08 Time: 4:20 pm Merchant: Vitales Card type: Master Card Issuer: Midwest Bank

9 CHARACTERISTICS OF DATA/ INFORMATION… Transaction ID Transaction Date Transaction Time Merchant /05/084:08 pmWIU Union /05/084:20 pmVitales Data is typically organized into ?? Transaction#: Date: 12/5/08 Time: 4:08 pm Merchant: WIU Union Card type: Master Card Issuer: First Bank

10 Transaction ID Transaction Date Transaction Time Merchant /05/084:08 pmWIU Union /05/084:20 pmVitales HISTORICAL APPROACH TO DATA /05/08 4:08pm WIU Union /05/08 4:20pm Vitales /07/09 8:05am Pizza Hut $25.60 MasterCard $38.00 Visa $63.00 Visa $55.00 American Express This is called ___________ __________.

11 FILE PROCESSING PROBLEMS What problems did the file processing approach result in?

12 DATABASE ORGANIZATION

13  Database - Organized collection of information  DBMS - SW program to manage and provide controlled access to the data DEFINITIONS

14 Database – A group of related files File/table – A group of related records Record – a grouping of related fields Field – a grouping of characters (one row) Schema -- This is the logical view of the database (tables and fields) Primary key – An attribute whose values are unique within a file Database Files/tables Records Fields DBMS ORGANIZATION

15 Primary key Record Attr. values Attributes/field names Structure/schema DBMS ORGANIZATION PROD#DESCR.PRICEQUANTITY IR888ERefrigerator$1,80020 TS3233Television$6732 Record

16 DBMS ACTIVITIES

17 DBMS ACTIVITIES & FUNCTIONS Define structure / schema Enter data modify data query data get reports Activities with DBMS

18 Define structure/schema DBMS ACTIVITIES & FUNCTIONS Field NameData typeDescriptionLengthDecimals Prod#NumericUnique prod code 60 DescrTextShort prod description 250 PriceCurrencyProduct price62

19 Enter data -- Create a data entry form PRODUCT DATA ENTRY Product #: Description: Label Field Heading Data entry form DBMS ACTIVITIES & FUNCTIONS

20 DBMS ACTIVITIES & FUNCTIONS u Add u Delete u Change Modify data Records/field values

21 Query data list products costing more than $2,000 Query by example form DBMS ACTIVITIES & FUNCTIONS

22 RH PH Detail Fields PF RF PRODUCT LISTING PRODUCT #DESCR.PRICE Product # Descr.Price Average Price Title Column Headings Footer A report specification

23 GETTING DATA OUT.. PRODUCT LISTING PROD# DESCRIPTION PRICE M100 Chair $ M150 Table $ Average Price $ A generated report

24  Activities with DBMS ◦ Define structure / schema ◦ Enter data ◦ modify data ◦ query data ◦ get reports è DBMS components

D B M S Kernel Major Components of DBMS Export/Import Data Defn. Data Defn. SQL Prog. Language Interface Prog. Language Interface Data Diction- ary Data Diction- ary Screen/ Report Gen. Screen/ Report Gen. Appln. Gen. Appln. Gen.

DBMS COMPONENTS.. Data definition – the facility through which schema is defined. (how new tables are created). SQL interface – the facility through which SQL commands are typed in. Programming language interface – the facility which processes SQL commands embedded in application program. Also known as the host language interface. Data dictionary – the facility that records details about the schema, reports, data entry forms etc. Screen & reports- the facility through which data entry screens and reports are created. Appln. Generation- the facility through which applications are created. Export/Import -- the facility through which files can be imported/exported in different DBMS formats. DBMS Kernel -- the actual programs which interact with the O/S and carry out data I/O.

27 Suppose we have detailed information on each and every transaction in a store, what can we do with that? What if a customer wants to return a shirt purchased in the store? What if a manager wants to know what products were sold on a particular day? USAGE OF DATA/INFORMATION

28  To store and record information e.g. bal, price, grades etc.  To retrieve information e.g. check#432 cashed?  To report information e.g. daily sales  To answer queries e.g. how many shoes were sold? IMPORTANCE OF DBMS’s Databases are used:  To analyze trends  Identify sales prospects Advanced uses:

29 INTRO TO DATABASES - II IS 340 BY CHANDRA S. AMARAVADI

30 DBMS EVOLUTION

31 EVOLUTION OF DBMS File processing systems Hierarchical systems Relational systems 1 March 2002 Greece 2 July 2003 Italy 3 …………….. Person Photo1Photo2 GreeceItaly PhotoId

32 EVOLUTION OF DBMS.. FILE PROCESSING SYSTEMS:  Data in the form of “flat files” (ascii files)  Each program had its own specific files  Data was duplicated across files. A system where data was managed by the program in the form of flat files.

33 EVOLUTION OF DBMS.. PROBLEMS CAUSED BY FILE PROCESSING l Uncontrolled redundancy l Poor data quality (a.k.a.?) l Lack of data sharing

34 HIERARCHICAL MODEL.. l Structure is hierarchical (not flat) l There are one or more root segments l segments are linked hierarchically l Difficult to write queries but very efficient (fast)!

35 HIERARCHICAL MODEL NAMETOTAL_ENROLLNO_OF_PHD ASNAMEJOB_TITLEFNAMERANKDEGREE (D) DEPARTMENT (A) ADMIN-STAFF(F) FACULTY What do you call this?

36 Data organized into tables Data retrieved by using SQL, 4 th GL joins tables by equating values of cross reference keys. RELATIONAL MODEL 8895 Smith 4/16/90 $35, Farley 4/22/91 $ Gomez 1/10/00 $2,000 ACCT ACCT# NAME DT. OPENED BALANCE

37 THE DATABASE DEVELOPMENT APPROACH

38 cust. empl. prod Organization Entity classes Data model File 2 File 1 Data base

39 THE DATABASE CONCEPT.. u Organizations need to collect and manage information. u Typically this need can be summarized in terms of entity classes and their relationships u Known as a (conceptual) data model/ER model u ER model is converted to database model u Implemented

40 u Integrated conceptualization u Convert it to design u Go through development process u Different users/programs can share the information easily u Can access info via SQL u Can get reports easily Database DBMS Prog. 2Prog. 1

41 CUSTOMER ACCTS.LOANS CROSS REFERENCE REPORT ACCT. DATALOAN DATA GETTING INFORMATION FROM FILE PROCESSING

42 GETTING INFORMATION FROM A DATABASE ACCT# NAME DT. OPENED BALANCE 8895 Smith 4/16/90 $35, Farley 4/22/91 $ Gomez 1/10/00 $2,000 ACCT LID AMOUNT INT. RATE BALANCE LOAN 9978 $6, % $2, $5, % $5, $1, % $ 400 How can We combine these two Tables?

43 DATA MODELS

44 DATA MODELS -- BASIC CONCEPTS Data models: representations of relationships among entity classes Entity – Individual example of person, place or thing. Entity Class – Collection of related entities (eclass). Attributes – Properties of entity classes about which we would like to collect information. Primary key -- An attribute whose values are unique within an entity class (pkey).

45 DISCUSSION u San Francisco u Tires u Customer u Book u ISBN# u Neon u Peoplesoft u Cust. balance u Microsoft u Microsoft employees u Date of Birth u Invoice Classify the following as entity, entity class or attribute

46 DATA MODELS… Cardinality: Number of entities participating in a relationship A B 1:1 A B 1:M A B M:N For each value of A, one and only one value of B and vice versa. For each value of A, multiple values of B, but for each B only one A. For each value of A, many values of B and vice versa.

47 DISCUSSION Identify the types of the following relationships l company -- president l instructor -- students l plane -- pilots l city -- convention centers l department -- employees l team -- players l company -- city l books – authors l city -- subdivisions l product -- warranty

48 AN EXAMPLE ER CHART CUSTOMER ORDERS Places Cust#Name PRODUCTSAre for ENTITY CLASS ATTRIBUTE RELATIONSHIP Ord# Ord dt

49 Draw Data Models (ER models) corresponding to the following Situations: Students take courses from professors Clients can book one or more properties with a rental agency. Each property can be booked by more than one client (for different dates). Trains arrive and depart from platforms in train stations, corresponding to the cities that they stop in. A city can have many Stations. Airlines operate a number of flights which arrive and depart from Gates. There could be several flights from a gate, but each flight is assigned only one gate. Each airline operates a gate or a set of Gates which are leased to them by the airport. DISCUSSION

50 Design a database for the following situation: Bellsouth, a telephone company needs a database to maintain records of its automobiles, repairs, mechanics and special equipment needed to repair cars. Mechanics are assigned skill codes based on the type of repairs they can carry out. For e.g. Class III mechanics can perform reborings, engine overhauls and transmission repairs. The repair shops are located in 300 cities and towns throughout the state. Mechanics can be assigned to only one repair shop at a time. The application requires knowing what equipment is (for e.g. diagnostic equipment, hydraulic machinery) is at what location and also the repairs carried out on each vehicle. For each vehicle the application requires knowing its identification number, mileage and repair history. DISCUSSION

51 DISTRIBUTED AND MULTI-MEDIA DATABASES, DATA WAREHOUSES

52 CENTRALIZED DATABASES u The database is in one physical location. u All applications regardless of whether the clients are located in Seoul or Detroit need to access data from that physical location. u What are the limitations? Centralized databases

53 DISTRIBUTED DATABASES u Replicated -- copies of the database maintained in multiple sites u Partitioned -- database is physically divided into chunks The data is physically stored in multiple geographical locations

54 REPLICATED DATABASES..

55 PARTITIONED DATABASES.. Emp IDEmp Name Cathy 200 Meadowbrook Emp Address Richard 13 E. Willow Hugh 1400 E. Washington ……. …….. …………………..

56 PARTITIONED DATABASES u The database is divided into chunks. u What is the logical way of doing this? u Different chunks are placed in different locations. u All the locations are connected. u What are the advantages and limitations? The database is in multiple physical locations

57 MULTI-MEDIA DATABASES Emp IDEmp Name Emp. Picture Emp Address A database that is able to handle multiple data types: u Conventional information u Images u Audio & video Capable of storing, retrieving and updating this type of information Emp.jpg

58 MULTI-MEDIA DATABASES.. APPLICATIONS u Travel bureaus u Hospitals u Manufacturing u Training

59 MULTI-MEDIA DATABASES.. u Storage space u Retrieval u Modification ISSUES

60 u DATA WAREHOUSE: Historical data organized for analysis and decision making. u DATA MART: smaller version of data warehouse, specialized by functional area e.g. marketing n ON-LINE ANALYTICAL PROCESSING (OLAP): organizes data into a “cube” for decision analysis. DATA WAREHOUSES

61 HISTORICAL INFORMATION INTERNAL DATA SOURCES EXTERNAL DATA SOURCES OPERATIONAL, HISTORICAL DATA DATA WAREHOUSE EXTRACT, TRANSFORM OLAP DATA MINING DATA WAREHOUSING & OLAP

62 DISCUSSION QUESTIONS n Are Databases and DBMSs one and the same? n Does a record consist of files? n What is the smallest unit of data in the database? n Does data integrity refer to data quality? n What does the detail line of a report consist of? n Is an “employee” an entity class or an attribute? n Is the data dictionary useful while creating the database? n Why do we use SQL? n Is it necessary to use SQL to produce database reports? n If we have a number of diskettes in alphabetical sequence, is this an example of a file organization? If so, what type? n Would multi-national organizations prefer centralized databases?

63 THAT’S ALL FOLKS!

64 THAT’S ALL FOLKS!

65 THAT’S ALL FOLKS!