Databases. Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit.

Slides:



Advertisements
Similar presentations
Management Information Systems, Sixth Edition
Advertisements

Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Modeling the Data: Conceptual and Logical Data Modeling
Relational Databases Relational Model Primary Keys Relation or Relationship Foreign Keys Relationships between entities Integrity Constraints Power of.
Chapter 2 The Relational Database Model
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
Chapter 14 Getting to First Base: Introduction to Database Concepts.
3-1 Chapter 3 Data and Knowledge Management
Database Design Chapter 3.
Database Design Chapter 2. Goal of all Information Systems  To add value –Reduce costs –Increase sales or revenue –Provide a competitive advantage.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
 An entity-relationship (ER) diagram is a specialized graphic that illustrates the interrelationships between entities in a database.  An Entity Relationship.
IST Databases and DBMSs Todd S. Bacastow January 2005.
Introduction to ArcGIS for Environmental Scientists Module 2 – Fundamentals Lecture 6 – Table Functions.
The Relational Database Model
3 The Relational Model MIS 304 Winter Class Objectives That the relational database model takes a logical view of data That the relational model’s.
Database Design Concepts
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
Relational Model Session 6 Course Name: Database System Year : 2012.
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Copyright © Curt Hill The Relational Model of Database Basic organization and terms.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
Information Systems & Databases 2.2) Organisation methods.
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.
Fanny Widadie, S.P, M.Agr 1 Database Management Systems.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Jozef Kuper.  Describe a Database  Entities  Atributes  Relationships.
In this session, you will learn to: Map an ER diagram to a table Objectives.
ENTITY RELATIONSHIP DIAGRAM ENTITY RELATIONSHIP DIAGRAM IS A SPECIALIZED GRAPHIC THAT ILLUSTRATES THE INTERRELATIONSHIPS BETWEEN ENTITIES IN A DATABASE.
Relational Theory and Design
Databases Illuminated Chapter 3 The Entity Relationship Model.
Copyright © 2008 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Fluency with Information Technology Third Edition by Lawrence Snyder Chapter.
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 3 The Relational Database Model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 3 The Relational Database Model.
Chapter 2: Intro to Relational Model. 2.2 Example of a Relation attributes (or columns) tuples (or rows)
Lesson 2: Designing a Database and Creating Tables.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
1 DATABASE TECHNOLOGIES (Part 2) BUS Abdou Illia, Fall 2015 (September 9, 2015)
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
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,
3 1 Database Systems The Relational Database Model.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Microsoft Access 2010 Chapter 11 Database Design.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Teanna Clarke 6aQ What is a Entity-Relationship Diagram?  An Entity-Relationship Diagram (ERD) is a tool that graphically shows the connections among.
Data Modeling AND ER MODELS.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
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.
Databases Chapter 16.
Chapter 2: Relational Model
Chapter 3 The Relational Database Model
DATABASE SYSTEM.
The Relational Database Model
Getting to First Base: Introduction to Database Concepts
Getting to First Base: Introduction to Database Concepts
Getting to First Base: Introduction to Database Concepts
Database Systems: Design, Implementation, and Management
Presentation transcript:

Databases

Not All Tables Are Created Equal Spreadsheets use tables to store data and formulas associated with that data The “meaning” of data is implicit Row and column labels are essentially for decoration, they are not actually linked to the data Spreadsheet tables lack the necessary structure to relate entries in one table to entries in another

Databases Structured collections of data Indexed and organized In contrast to – Files (unstructured) – Spreadsheets (structure but no semantic (meaningful) indexing)

Relational Databases Specialized tables that describe relationships between data items Relate the contents of one or more tables Based on – Properties that are common between tables – Items that are in common This “structure” allows us to filter and compose data efficiently

Logical Data Model Entities- tables of anything that can be identified by some number of characteristics, called attributes. Attributes have names and values, and these “values” are what is actually stored in a database’s table. Relationships are defined between entities (tables)

Database Properties Instances are unordered. There is no inherent order to the rows and columns of a table Uniqueness. Each instance (row) must be unique Keys. Some subset of attributes (columns) distinguishes each instance in the table. There may be several distinct subsets that distinguish instances; each is a candidate key. Because databases usually have several candidate keys, we choose one and call it the primary key.

Entity Relationship Diagram Relationships between entities (tables) can be 1-to-many (A department has many faculty) There is usually a table for each entity with a 1-to-many relationship

Relationships One-to-one: There is one instructor per class One-to-many: A department has many faculty members Many-to-many: Each student takes several classes, and each class has a list of students

A Database’s Schema The combination of table attributes and relations specify the structure of a database This structure is called the database’s schema A schema can be specified for an empty database

Database Operations Select - extracts rows from one table to create a new table. Select From

Database Operations Project - extracts columns from one table to create a new table. Select From

Database Operations Database operations can be composed

Database Operations Product for Combining tables

Product Result

Using Database Products Usually table products would be combined with a series of Select and Project operations Most often, products would combine tables that do not share common attributes

One More Database Operation Join: also combines two tables, but only where the specified attributes match Result = Join Nations, NationStats On Nations.Name = NationStats.Name

Database Operations Database operations can be composed

Summary Databases are specialized tables with names and attributes for all entities In a relational database, there exist relations between tables The combination of a tables attributes and relations between the tables in a datbase comprise it’s schema Databases provide basic operations including- Select, Project, Product, Join