Lecture 2 An Overview of Relational Database IST 318 – DB Admin.

Slides:



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

Management Information Systems, Sixth Edition
Client/Server Databases and the Oracle 10g Relational Database
Database Design Conceptual –identify important entities and relationships –determine attribute domains and candidate keys –draw the E-R diagram Logical.
Database Management: Getting Data Together Chapter 14.
Concepts of Database Management Sixth Edition
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
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.
Terms - data,information, file record, table, row, column, transaction, concurrency Concepts - data integrity, data redundancy, Type of databases – single-user,
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
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?
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.
IST Databases and DBMSs Todd S. Bacastow January 2005.
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
Concepts of Database Management Seventh Edition
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Copyright © 2003 by Prentice Hall Module 4 Database Management Systems 1.What is a database? Data hierarchy and data organization Field, record, file,
Copyright © 2003 by Prentice Hall Computers: Tools for an Information Age Chapter 13 Database Management Systems: Getting Data Together.
MIS 385/MBA 664 Systems Implementation with DBMS/ Database Management Dave Salisbury ( )
Chapter 1Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management.
Concepts and Terminology Introduction to Database.
2005 SPRING CSMUIntroduction to Information Management1 Organizing Data John Sum Institute of Technology Management National Chung Hsing University.
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:
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Database Systems: Design, Implementation, and Management Tenth Edition
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 6 Normalization of Database Tables.
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.
Storing Organizational Information - Databases
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
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.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Chapter 13 Designing Databases Systems Analysis and Design Kendall & Kendall Sixth Edition.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
Concepts of Database Management Seventh Edition Chapter 1 Introduction to Database Management.
Foundations of Business Intelligence: Databases and Information Management.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
IS 320 Notes for April 15, Learning Objectives Understand database concepts. Use normalization to efficiently store data in a database. Use.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Microsoft Access 2010 Chapter 11 Database Design.
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
Database Design Chapter 7.
Presentation transcript:

Lecture 2 An Overview of Relational Database IST 318 – DB Admin

Chapter 1 Overview of Database Concepts Oracle 10g: SQL

Oracle 10g: SQL 3 Objectives Define database terms Identify the purpose of a database management system (DBMS) Explain database design using entity-relationship models and normalization Explain the purpose of a Structured Query Language (SQL) Understand how this textbook’s topics are sequenced and how the two sample databases are used

Oracle 10g: SQL 4 Database Terminology Database – logical structure to store data Database management system (DBMS) – software used to create and interact with the database

Oracle 10g: SQL 5 Database Components Character Field Record File

Oracle 10g: SQL 6 Database Components - Character Basic unit of data Can be a letter, number, or special symbol

Oracle 10g: SQL 7 Database Components - Field A group of related characters Represents an attribute or characteristic of an entity Corresponds to a column in the physical database

Oracle 10g: SQL 8 Database Components - Record A collection of fields for one specific entity Corresponds to a row in the physical database

Oracle 10g: SQL 9 Database Components - File A group of records about the same type of entity

Oracle 10g: SQL 10 Components Example

Oracle 10g: SQL 11 Database Example

Oracle 10g: SQL 12 Database Management System Data storage: manage the physical structure of the database Security: control user access and privileges Multiuser access: manage concurrent data access Backup: enable recovery options for database failures Data access language: provide a language that allows database access Data integrity: enable constraints or checks on data Data dictionary: maintain information about database structure

Oracle 10g: SQL 13 Database Design Systems Development Life Cycle (SDLC) Entity-Relationship Model (E-R Model) Normalization

Oracle 10g: SQL 14 Systems Development Life Cycle (SDLC) Systems investigation – understanding the problem Systems analysis – understanding the solution Systems design – creating the logical and physical components

Oracle 10g: SQL 15 Systems Development Life Cycle (SDLC) (continued) Systems implementation – placing completed system into operation Systems maintenance and review – evaluating the implemented system

Oracle 10g: SQL 16 Entity-Relationship Model (E-R Model) Used to depict the relationship that exists among entities Model symbols:

Oracle 10g: SQL 17 Relationships The following relationships can be included in an E-R Model: –One-to-one –One-to-many –Many-to-many

Oracle 10g: SQL 18 E-R Model Notation Examples

Oracle 10g: SQL 19 One-to-one Relationship

Oracle 10g: SQL 20 One-to-many Relationship

Oracle 10g: SQL 21 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

Oracle 10g: SQL 22 Example E-R Model

Oracle 10g: SQL 23 Database Normalization Determines required tables and columns for each table Multi-step process Used to reduce or control data redundancy

Oracle 10g: SQL 24 Database Normalization (continued) Data redundancy - Refers to having the same data in different places within a database Data anomalies - Refers to data inconsistencies

Oracle 10g: SQL 25 Unnormalized Data Contains repeating groups in the Author column in the BOOKS table

Oracle 10g: SQL 26 First-Normal Form (1NF) Primary key is identified Repeating groups are eliminated

Oracle 10g: SQL 27 First-Normal Form (1NF) (continued) ISBN and Author columns together create a composite primary key

Oracle 10g: SQL 28 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

Oracle 10g: SQL 29 Second-Normal Form (2NF) Partial dependency must be eliminated –Break the composite primary key into two parts, each part representing a separate table

Oracle 10g: SQL 30 Second-Normal Form (2NF) (continued) BOOKS table in 2NF

Oracle 10g: SQL 31 Third-Normal Form (3NF) Publisher contact name has been removed

Oracle 10g: SQL 32 Summary of Normalization Steps 1NF: eliminate repeating groups, identify the primary key 2NF: table is in 1NF and partial dependencies are eliminated 3NF: table is in 2NF and transitive dependencies are eliminated

Oracle 10g: SQL 33 Relating Tables within the Database 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

Oracle 10g: SQL 34

Oracle 10g: SQL 35 Structured Query Language (SQL) Data sublanguage Used to: –Create or modify tables –Add data to tables –Edit data in tables –Retrieve data from tables ANSI and ISO standards

Oracle 10g: SQL 36 Databases used in this Textbook- JustLee Books’ Database Assumptions: –No back orders or partial shipments –Only US addresses –Shipped orders are purged (deleted) at the end of the month

Oracle 10g: SQL 37 Topic Sequence The first half of the text will focus on creating a database The second half of the text will focus on querying or retrieving data from a database

Oracle 10g: SQL 38 Summary A DBMS is used to create and maintain a database A database is composed of a group of interrelated tables A file is a group of related records; a file is also called a table in the physical database A record is a group of related fields regarding one specific entity; a record is also called a row

Oracle 10g: SQL 39 Summary (continued) A record is considered unnormalized if it contains repeating groups A record is in first-normal form (1NF) if no repeating groups exist and it has a primary key Second-normal form (2NF) is achieved if the record is in 1NF and has no partial dependencies After a record is in 2NF and all transitive dependencies have been removed, then it is in third-normal form (3NF), which is generally sufficient for most databases

Oracle 10g: SQL 40 Summary (continued) A primary key is used to uniquely identify each record A common field is used to join data contained in different tables A foreign key is a common field that exists between two tables but is also a primary key in one of the tables A Structured Query Language (SQL) is a data sublanguage that navigates the data stored within a database’s tables