Copyright © 2003-2008 Curt Hill The Relational Model of Database Basic organization and terms.

Slides:



Advertisements
Similar presentations
Chapter 3 : Relational Model
Advertisements

Relational Databases Chapter 4.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Relational Databases Relational Model Primary Keys Relation or Relationship Foreign Keys Relationships between entities Integrity Constraints Power of.
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.
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Design & ER Diagrams
Database Architecture The Relational Database Model.
INTRODUCTION TO DATABASE USING MS ACCESS 2013 PART 2 NOVEMBER 4, 2014.
The Relational Database Model
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.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
CSC 280: INTRODUCTION TO DATABASE MANAGEMENT SYSTEMS Dr. Adam Anthony Fall 2012.
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.
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
R ELATIONAL D ATA M ODEL Joe Meehean 1. R ELATIONAL D ATA M ODEL Data stored as a set of relations really just tables Tables related to one another through.
Data Integrity An empty database is a correct database.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
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.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
The Relational Model Pertemuan 03 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Database Concepts. Data :Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files.
Prepared By Prepared By : VINAY ALEXANDER ( विनय अलेक्सजेंड़र ) PGT(CS),KV JHAGRAKHAND.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Database Fundamentals CSC105 Furman University Peggy Batchelor.
Relational Theory and Design
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
Copyright © Curt Hill Entities and Relationships The basics and what they have to do with database.
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,
* 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.
3 1 Database Systems The Relational Database Model.
April 20022CS3X1 Database Design The relational model John Wordsworth Department of Computer Science The University of Reading
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
INFORMATION TECHNOLOGY DATABASE MANAGEMENT. A database is a collection of information organized to provide efficient retrieval. The collected information.
Chapter 4 The Relational Model Pearson Education © 2009.
Lecture 5 Data Model Design Jeffery S. Horsburgh Hydroinformatics Fall 2012 This work was funded by National Science Foundation Grant EPS
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 4 Relational Databases
Chapter 3 The Relational Model.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Databases and Structured Files: What is a database?
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Getting to First Base: Introduction to Database Concepts
Getting to First Base: Introduction to Database Concepts
Chapter 4 The Relational Model Pearson Education © 2009.
Getting to First Base: Introduction to Database Concepts
Chapter 3 The Relational Model
Presentation transcript:

Copyright © Curt Hill The Relational Model of Database Basic organization and terms

Copyright © Curt Hill Relational Form is that of a table Each table has –A fixed number of columns The contents of a field in a column may be empty –A variable number of rows A row is known as a tuple A column is a set of fields and is all of the same type Different tables may have different columns

Copyright © Curt Hill Relation In theory a relation is a set –No ordering at all In practice our tuples are often ordered In theory a tuple is also a set In practice a tuples are ordered –We are able to reorder them easily

Copyright © Curt Hill Terms Entity Relationship Attribute Tuple Table Relation Often many synonyms

Copyright © Curt Hill Definition: Schema Schema - describes the rows of a table –A set of attribute names The definition of kinds of attributes making up a tuple –The definition of the file type –This is usually static, that is the file definition does not change over time much Subschema –A piece of a larger schema

Schema Flavors Conceptual Schema –AKA logical schema –Describes data in terms of tables Physical Schema –How the data is actually stored –Viewpoint is the disk or hardware External Schema –A subset or different view of the conceptual schema –Different users may see different external schema Copyright © Curt Hill

Definition: Body The actual tuples making up a relation at any one time This usually varies over time The contents of the file can change often and substantially

Copyright © Curt Hill Terms Defined Degree –Count of attributes Cardinality of a relation –Number of tuples present

Copyright © Curt Hill Keys Candidate –Minimal collection of one or more fields that unique identify tuple Primary –One of the candidate keys –Who decides? Business expert not db expert Foreign –Referenced primary in another table

Copyright © Curt Hill Other keys Alternate –A candidate key that is not the primary Secondary –(Not really a relational term) –Any set of attributes Does not have to be unique Does not have to be a candidate key, though candidate keys used in indices are often called secondary –Used as a key in an index structure