1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.

Slides:



Advertisements
Similar presentations
The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
Advertisements

The Relational Database Model – some relations you might want to avoid!!!
The Relational Database Model
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
3-1 Chapter 3 Data and Knowledge Management
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Databases and Database Management Systems
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Thomas Connolly and Carolyn Begg’s
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
APPENDIX C DESIGNING DATABASES
Database Architecture The Relational Database Model.
Introduction to Databases. Overview  What is a Database?  What is a Database Management System?  How is information organized in a database?  What.
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Module Title? DBMS E-R Model to Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
5.1 © 2007 by Prentice Hall 5 Chapter Foundations of Business Intelligence: Databases and Information Management.
Lecture 3 The Relational DB Model. Learning Objectives That the relational database model takes a logical view of data That the relational model’s basic.
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Introduction to SQL Steve Perry
Data-mining & Data As we used Excel that has capability to analyze data to find important information, the data-mining helps us to extract information.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
Databases. Database A database is an organized collection of related data.
Introduction to Microsoft Access Overview 1. Introduction What is Access? A relational database management system What is a Relational Database? Organized.
SQL Structured Query Language Programming Course.
Relational Databases (MS Access)
Relational Databases Database Driven Applications Retrieving Data Changing Data Analysing Data What is a DBMS An application that holds the data manages.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Organizing Data Revision: pages 8-10, 31 Chapter 3.
Storing Organizational Information - Databases
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
Relational Database. Database Management System (DBMS)
DAY 14: MICROSOFT ACCESS – CHAPTER 1 Madhuri Siddula October 1, 2015.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Quiz questions. 1 A data structure that is made up of fields and records? Table.
Database Basics BCIS 3680 Enterprise Programming.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
* Database is a group of related objects * Objects can be Tables, Forms, Queries or Reports * All data reside in Tables * A Row in a Table is a record.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Database Concepts and Applications in HRIS
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Foundations of information systems : BIS 1202 Lecture 4: Database Systems and Business Intelligence.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
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.
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
INTRODUCTION TO DATABASES (MICROSOFT ACCESS)
Revised: 2 April 2004 Fred Swartz
Chapter 4: Logical Database Design and the Relational Model
Databases Chapter 16.
© The McGraw-Hill Companies, All Rights Reserved APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
CIS 207 The Relational Database Model
CSCI-100 Introduction to Computing
The Relational Database Model
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Microsoft Access Date.
Presentation transcript:

1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support systems (DSS) or other information systems (see next 2 slides). Information (processed data) can also be stored in a database. The size of database is huge as some organizations store data up to 20 years, e.g. government, banks. Crucial to have the huge database managed properly; database management systems (DBMS) can help e.g. Access, Oracle, DB2, FoxPro, Sybase.

2

3 Functional Management Information Systems Draw Data from the Organization’s TPS

4 Database Terminologies A database - a collection of tables. Tables are also called relations. 2-dimensional table: a series of row/column intersections –A table represents one type of entity e.g. a table for agents, and a separate table for customers. –A table contains related entities of a particular type, e.g. a table of different customers’ records, a table of different agents’ records.

5 Relational Database Model Figure 1.11

6 Relational Database Attribute (a column or a field) of a table –An attribute is one characteristic (or property) of that type of entity e.g. customer’s address, phone number, sex, birth date etc. Record (a row) of a table –Represents a particular entity e.g. a particular customer or a particular agent. –Has logically connected fields that describe a particular entity e.g. a person, place, a thing, an object, a concept or thing about which data are collected.

7 Relational database Each entity must have a unique key or identifier. Tables must have an attribute(s) that uniquely identify each row (or entity) – primary key. Values of a column all have the same data format. The order of the rows and columns is immaterial (unimportant) to the DBMS e.g. Microsoft Access. Primary key of each table must: –Be Unique –Have No ‘null’ value in key –consist of a single field or multiple fields. –E.g. HKID, car registration number.

8 Relationship between ‘Agent’ and ‘customer’ ‘Agent’ and ‘customer’ are 2 separate entity types (in 2 different tables). ‘Agent’ and ‘customer’ have a 1-to-many relationship because of the following: - Each ‘agent’ is in charge of 1 or more ‘customers’, but each ‘customer’ only deals with 1 particular ‘agent’.

9 Relational Database Schema See next slide – a relational schema produced by Microsoft access. The “AGENT_CODE” is the unique identifier for each agent. The “CUS_CODE” is the unique identifier for each customer. Here, “CUSTOMER” represent the “many” side, because an agent can have many customers. The “AGENT” represents the “1” side because each customer has only a single agent.

10

11 Simple Relational Database Figure 2.2

12

13 Keys Primary key –to uniquely identify an entity from many entities of the same type. Foreign key –Values must match primary key in another table –Used to have relationships (1:1, 1:M or M:N) with another table.

14 Example 1:M Relationship Figure 2.20

15 Database Design and schema IT professionals and programmers are responsible for the design (schema) of the database: table structures, relationships between tables, primary and foreign keys etc. Business managers or users of a database should understand the design of a database and query this database for information or data. Use Access’s QBE to query a simple database.