Relationships & Queries in Databases

Slides:



Advertisements
Similar presentations
Chapter 10: Designing Databases
Advertisements

Chapter 5 Database Concepts. Why Study Databases? Databases have incredible value to business. Probably the most important technology for supporting operations.
Chapter 5 Database Concepts. Why Study Databases? Databases have incredible value to businesses. Very important technology for supporting operations.
Chapter 5 Relationships & Queries in Databases. Types of Relationships One to One Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be.
The Hierarchy of Data Bit (a binary digit): a circuit that is either on or off Byte: 8 bits Character: each byte represents a character; the basic building.
Fundamentals of Information Systems, Second Edition 1 Organizing Data and Information Chapter 3.
Organizing Data Chapter 5. Data Hierachy Table = Entities X Attributes Entities = Records Attributes = Fields.
Organizing Data & Information
Chapter 5 Database Concepts.
Organizing Data and Information
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database – Part 2a Dr. V.T. Raja Oregon State University.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Information systems and databases Database information systems Read the textbook: Chapter 2: Information systems and databases FOR MORE INFO...
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Normalized bubble chart for Data in the Instructor’s View Instructor Organization Title Standard fee Text book Course + Date Participant Grade.
© 2003 McGraw-Hill Australia Pty Ltd, PPTs t/a Accounting Information & Reporting Systems by A. Aseervatham and D. Anandarajah. Slides prepared by Kaye.
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
Chapter 5 Lecture 2. Principles of Information Systems2 Objectives Understand Data definition language (DDL) and data dictionary Learn about popular DBMSs.
INFORMATION SYSTEM APPLICATIONS System Development Life Cycle.
1 Introduction to databases concepts CCIS – IS department Level 4.
Fundamentals of Information Systems, Second Edition 1 Organizing Data and Information.
Information Systems: Databases Define the role of general information systems Describe the elements of a database management system (DBMS) Describe the.
Chapter 1 : Introduction §Purpose of Database Systems §View of Data §Data Models §Data Definition Language §Data Manipulation Language §Transaction Management.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Chapter 5 Data Resource Management.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Introduction to Databases
Chapter 1 Introduction to Databases © Pearson Education Limited 1995, 2005.
Organizing Data and Information
SYS364 Database Design Continued. Database Design Definitions Initial ERD’s Normalization of data Final ERD’s Database Management Database Models File.
Fundamentals of Information Systems, Sixth Edition Chapter 3 Database Systems, Data Centers, and Business Intelligence.
IIS 645 Database Management Systems DDr. Khorsheed Today’s Topics 1. Course Overview 22. Introduction to Database management 33. Components of Database.
Data Resource Management Data Concepts Database Management Types of Databases Chapter 5 McGraw-Hill/Irwin Copyright © 2007 by The McGraw-Hill Companies,
THE LEONS COLLEGE OF LAW1 Organizing Data and Information Chapter 4.
Databases and Database User ch1 Define Database? A database is a collection of related data.1 By data, we mean known facts that can be recorded and that.
Introduction to Databases Transparencies
Introduction to Databases Transparencies
CS 325 Spring ‘09 Chapter 1 Goals:
Introduction to DBMS Purpose of Database Systems View of Data
Pengantar Sistem Informasi
Normalized bubble chart for Data in the Instructor’s View
Data Resource Management
Databases and Database Users
Chapter 1 Introduction.
Chapter 2: Database System Concepts and Architecture - Outline
An Introduction to database system
Fundamentals & Ethics of Information Systems IS 201
Introduction to Databases Transparencies
Introduction to Databases
Chapter 12 Information Systems.
Introduction to Databases
Fundamentals of Information Systems
Chapter 4 Relational Databases
Databases and Data Warehouses Chapter 3
Chapter 3: Data Management Systems
Introduction to Database Management System
Database.
Chapter 5 Data Resource Management.
Database Systems Chapter 1
Introduction to Databases
Introduction to DBMS Purpose of Database Systems View of Data
Chapter 1 Database Concepts.
Introduction to Databases
Why Study Databases? Databases have incredible value to businesses.
Chapter 9: Database Systems
Introduction to Databases Transparencies
Chapter 2 Database Environment Pearson Education © 2009.
CHAPTER 5 THE DATA RESOURCE
Presentation transcript:

Relationships & Queries in Databases Chapter 5 Relationships & Queries in Databases

Types of Relationships One to One Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If the two answers are NO, then it is a one to one relationship.

Types of Relationships One to Many Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If the answers are no and yes, or yes and no, then the relationship is one to many.

Types of Relationships Many to Many Examples? Analysis Technique Consider ThingA and ThingB Can ThingA be related to more than one ThingB? Can ThingB be related to more than one ThingA? If the answers are yes and yes, then you have a many to many relationship

Leads to Serious Data Redundancy Hierarchical

Hierarchical

Network

Difficult to manage and implement relationships Network

The most popular structure Relational

Relational Orders Customers Products OID CID PID Quantity CID FName 001 508 199 500,000 002 201 2 003 510 1 Customers CID FName LName Address 508 Eric Breimer ... 509 Andrew Zych 510 Greg Smith Products PID Description Cost 199 Viagra $45.99 200 Tooth Paste $2.58 201 Hair Gel $5.99

Find the name and hire date of the manager working on the sales manual project

Schemas Schema - A description of the database Subschema – describes a subset of the database and which users have access to this subset

Data Definition Language Language Used to describe Schemas and Subschemas Describes relationships between different data Provides a Logical view of the data

Data Dictionary Entry A more detailed description of the data in a database Specifies data types and ranges Assists programmers in understanding the data

Logical vs. Physical Access Paths Database Management Systems concentrate on Physical access to the underlying tables Concurrency control Query’s Creating/deleting tables MIS systems are often software packages that (Logically) interface with a DBMS monthly reports charts automated inquiries