BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.

Slides:



Advertisements
Similar presentations
BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Advertisements

Concepts of Database Management Sixth Edition
Client/Server Databases and the Oracle 10g Relational Database
Concepts of Database Management Sixth Edition
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
3-1 Chapter 3 Data and Knowledge Management
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
Chapter 5 Normalization of Database Tables
Information Technology in Organizations
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Concepts of Database Management Seventh Edition
Chapter 3: Data Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 5 Normalization of Database Tables.
Relational Databases What is a relational database? What would we use one for? What do they look like? How can we describe them? How can you create one?
Introduction to Information and Computer Science Databases and SQL Lecture b This material (Comp4_Unit6b) was developed by Oregon Health & Science University,
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Page 1 ISMT E-120 Introduction to Microsoft Access & Relational Databases The Influence of Software and Hardware Technologies on Business Productivity.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 1 Overview of Database Concepts
Chapter 5 Database Processing.
Chapter 5 Normalization of Database Tables
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
2.3 Organising Data for Effective Retrieval
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 3 Objectives: Identifying and Eliminating Database.
CHAPTER 7 Database: SQL, MySQL. Topics  Introduction  Relational Database Model  Relational Database Overview: Books.mdb Database  SQL (Structured.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
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.
Chapter 1Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts and Terminology Introduction to Database.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 5 Normalization of Database.
MS Access: Creating Relational Databases Instructor: Vicki Weidler Assistant: Joaquin Obieta.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
Introduction to Databases Trisha Cummings. What is a database? A database is a tool for collecting and organizing information. Databases can store information.
Chapter 12: Designing Databases
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
Next Back A-1 Management Information Systems for the Information Age Second Canadian Edition Copyright 2004 The McGraw-Hill Companies, Inc. All rights.
C-1 Management Information Systems for the Information Age Copyright 2004 The McGraw-Hill Companies, Inc. All rights reserved Extended Learning Module.
Database revision.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Lesson 2: Designing a Database and Creating Tables.
Normalization Example. Database Systems, 8 th Edition 2 Database Tables and Normalization Normalization –Process for evaluating and correcting table structures.
Lection №4 Development of the Relational Databases.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Entity-Relationship Diagram Presentation Gianna-lee Williams 6AQ Ms. Anderson.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
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.
IST 220 – Intro to DB Lecture 4 Database Design thru ER Modeling.
Microsoft Access 2010 Chapter 11 Database Design.
What Is Normalization  In relational database design, the process of organizing data to minimize redundancy  Usually involves dividing a database into.
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.
Chapter 4 Relational Databases
Presentation transcript:

BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts

Lecture 2 / Slide 2 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Chapter Objectives  Identify the purpose of a database management system (DBMS)  Distinguish a field from a record and a column from a row  Identify the basic components of an Entity-Relationship Model  Define the three types of relationships that can exist between entities

Lecture 2 / Slide 3 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Chapter Objectives  Identify the problem associated with many-to-many relationships and the appropriate solutions  Explain the purpose of normalization  Describe the role of a primary key  Identify partial dependency and transitive dependency in the normalization process

Lecture 2 / Slide 4 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Chapter Objectives  Explain the purpose of a foreign key  Determine how to link data in different tables through the use of a common field  Explain the purpose of a structured query language (SQL)

Lecture 2 / Slide 5 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Terminology  Database – logical structure to store data  Database Management System (DBMS) – software used to create and interact with the database

Lecture 2 / Slide 6 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Components  Character  Field  Record  File

Lecture 2 / Slide 7 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Components - Character  Basic unit of data  Can be a letter, number, or special symbol

Lecture 2 / Slide 8 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Components - Field  A group of related characters  Represents an attribute or characteristic of an entity  Corresponds to a column in the physical database

Lecture 2 / Slide 9 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Components - Record  A collection of fields for one specific entity  Corresponds to a row in the physical database

Lecture 2 / Slide 10 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Database Components - File  A group of records about the same type of entity

Lecture 2 / Slide 11 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Components Example

Lecture 2 / Slide 12 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Review of Database Design  Systems Development Life Cycle (SDLC)  Entity-Relationship Model (E-R Model)  Normalization

Lecture 2 / Slide 13 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Systems Development Life Cycle (SDLC)  Systems investigation – understanding the problem  Systems analysis – understanding the solution  Systems design – creating the logical and physical components

Lecture 2 / Slide 14 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Systems Development Life Cycle (SDLC)  Systems implementation – placing completed system into operation  Systems maintenance and review – evaluating the implemented system

Lecture 2 / Slide 15 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Entity-Relationship Model (E-R Model)  Used to depict the relationship that exists among entities

Lecture 2 / Slide 16 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 E-R Model Symbols

Lecture 2 / Slide 17 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Relationships  The following relationships can be included in an E-R Model: –One-to-one –One-to-many –Many-to-many

Lecture 2 / Slide 18 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 One-to-one Relationship  Each occurrence of data in one entity is represented by only one occurrence of data in the other entity  Example: Each individual has just one Social Security Number (SSN) and each SSN is assigned to just one person

Lecture 2 / Slide 19 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 One-to-many Relationship  Each occurrence of data in one entity can be represented by many occurrences of the data in the other entity  Example: A class has only one instructor, but each instructor can teach many classes

Lecture 2 / Slide 20 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Many-to-many Relationship  Data can have multiple occurrences in both entities  Example: A student can take many classes and each class is composed of many students  Can not be included in the physical database

Lecture 2 / Slide 21 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Example E-R Model

Lecture 2 / Slide 22 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Normalization  Determines required tables and columns for each table  Multi-step process  Used to reduce or control data redundancy

Lecture 2 / Slide 23 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Unnormalized Data Contains repeating groups in the Author column in the BOOKS table

Lecture 2 / Slide 24 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 First-Normal Form (1NF)  Primary key is identified  Repeating groups are eliminated

Lecture 2 / Slide 25 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 First-Normal Form (1NF) ISBN and Author columns together create a composite primary key

Lecture 2 / Slide 26 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Composite Primary Key  More than one column is required to uniquely identify a row  Can lead to partial dependency - a column is only dependent on a portion of the primary key

Lecture 2 / Slide 27 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Second-Normal Form (2NF)  Partial dependency must be eliminated –Break the composite primary key into two parts, each part representing a separate table

Lecture 2 / Slide 28 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Second-Normal Form (2NF) BOOKS table in 2NF

Lecture 2 / Slide 29 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Third-Normal Form (3NF) Publisher contact name has been removed

Lecture 2 / Slide 30 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Summary of Normalization Steps  1NF: eliminate repeating groups, identify primary key  2NF: table is in 1NF and partial dependencies eliminated  3NF: table is in 2NF and transitive dependencies eliminated

Lecture 2 / Slide 31 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Linking Tables  Once tables are normalized, make certain tables are linked  Tables are linked through a common field  A common field is usually a primary key in one table and a foreign key in the other table

Lecture 2 / Slide 32 Introduction to Oracle9i: SQL, Morris-Murphy ©2003

Lecture 2 / Slide 33 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 JustLee Books’ Database Assumptions –No back orders or partial shipments –Only USA addresses –Shipped orders are purged (deleted) at the end of the month

Lecture 2 / Slide 34 Introduction to Oracle9i: SQL, Morris-Murphy ©2003 Structured Query Language (SQL)  Data sublanguage  Used to: –Create or modify tables –Add data to tables –Edit data in tables –Retrieve data from tables