3. Relational Model Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.

Slides:



Advertisements
Similar presentations
The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
Advertisements

4d. Structured Query Language – JOIN Operation Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets.
Microsoft Access.
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Database Modeling IT Key Ideas, Dynamic Database Systems, 2002 Chapter 8.
Concepts of Database Management Seventh Edition
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
The Relational Model Chapter Two. 2 Chapter Objectives Learn the conceptual foundation of the relational model Learn the conceptual foundation of the.
DAVID M. KROENKE’S DATABASE PROCESSING, 10th Edition © 2006 Pearson Prentice Hall 3-1 David M. Kroenke’s Chapter Three: The Relational Model and Normalization.
The Relational Model CIS 218. Entity A Person, Place, Thing or Transaction Something the user wants to track.
Introduction to Databases CIS 5.2. Where would you find info about yourself stored in a computer? College Physician’s office Library Grocery Store Dentist’s.
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
BIS310: Week 7 BIS310: Structured Analysis and Design Data Modeling and Database Design.
MS Access 2007 IT User Services - University of Delaware.
Computer Science & Engineering 2111 Introduction to Database Management Systems Relationships and Database Creation 1 CSE 2111 Introduction to Database.
Databases Creating databases to store information.
Database Relationships Objective 5.01 Understand database tables used in business.
Databases & Data Warehouses Chapter 3 Database Processing.
Microsoft Access Database software. What is a database? … a database is an organized collection of data. A collection of data of similar information compiled.
N. J. Taylor Database Management Systems (DBMS) 1.
Chapter 5 Database Processing.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
Learningcomputer.com SQL Server 2008 – Entity Relationships in a Database.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Plug-In T5: Designing Database Applications Business Driven Technology.
CIS 250 Advanced Computer Applications Introduction to Access.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
M1G Introduction to Database Development 2. Creating a Database.
5. Database Design Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
Using Microsoft Access 56:150 Information System Design.
Microsoft Access 2013 Design and Implement Powerful Relational Databases Chapter 6.
26 Mar 04 1 Application Software Practical 5/6 MS Access.
4a. Structured Query Language - SELECT Statement Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets.
Database Systems, 9th Edition 1.  In this chapter, students will learn: That the relational database model offers a logical view of data About the relational.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Relational Theory and Design
McGraw-Hill/Irwin ©2009 The McGraw-Hill Companies, All Rights Reserved CHAPTER 6 DATABASES AND DATA WAREHOUSES CHAPTER 6 DATABASES AND DATA WAREHOUSES.
You can sort Access data so you can view records in the order you want to view them, and you can filter data so you only see the records you want to see.
2a. What and Why Database? Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Lesson 2: Designing a Database and Creating Tables.
+ Relational Model IST210 Class Lecture. + Premiere Products A new company that is going to sells random merchandise via sales representatives You have.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
Planning & Creating a Database By Ms. Naira Microsoft Access.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Department of Mathematics Computer and Information Science1 CS 351: Database Systems Christopher I. G. Lanclos Chapter 3: The Relational Database Model.
7. Data Import Export Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
1 SY306: Web and Databases for Cyber Operations Slide Set: 11 Databases - Relational Model.
Understand Relational Database Management Systems Software Development Fundamentals LESSON 6.1.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Chapter 3 The Relational Database Model. Database Systems, 10th Edition 2 * Relational model * View data logically rather than physically * Table * Structural.
Logical Database Design and Relation Data Model Muhammad Nasir
Constraints Advanced Database Systems Dr. AlaaEddin Almabhouh.
VOCAB REVIEW. A field that can be computed from other fields Calculated field Click for the answer Next Question.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
Class Orientation Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
3d. Structured Query Language – JOIN Operations
Relational Databases.
CIS 155 Table Relationship
CSCI-100 Introduction to Computing
Lingma Acheson Department of Computer and Information Science IUPUI
ICT Database Lesson 2 Designing a Database.
Databases 1.
Presentation transcript:

3. Relational Model Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1

Relations Databases help people keep track of things. The thing that is being tracked is called an Entity. An entity is something of importance to the user that needs to be represented in the database. Databases store data in the form of Relations – “Relational Database”. 2

Relations A Relation is a two-dimensional table with the following characteristics: 3

Relations E.g. Relations: Non-relations: 4

Relations Non-relations: 5

Relations Sometimes, the term “Table” and “Relation” are used interchangeably, but strictly speaking, some tables are not relations. Conventions – –Table names are all uppercases, with words connected by underscores. E.g. EMPLOYEE_PROJECT_ASSIGNMENT –Column names starts with uppercase. If two words are used, each word starts with upper case. Words are connected with nothing in between. E.g. FirstName, PhoneNumber 6

Primary Key A field used as the unique identifier in the database. E.g. EmployeeNumber An ideal primary key is short, numeric and never changes. 7

Primary keys and Foreign Keys Sometimes values from one table appear in a second table. Two records can be linked together by the same value. 8

Primary keys and Foreign Keys The unique identifier should be the Primary Key. The key that holds the values repeated in the second table is a Foreign Key. 9

Primary keys and Foreign Keys A value of the foreign key must match with a value of the primary key. E.g. The Adviser number in the STUDENT table must first appear in the ADVISER table. The two keys must be of the same type. In Access, “AutoNumber” must be matched with “Number”. 10

Define a Relationship This constraint can be enforced by defining a Relationship.The constraint is called a “referential integrity constraint”. By defining a relationship, we are asking the software tool to ensure that the values and types are matched. If a value that doesn’t satisfy the constraint is entered, the entry is not allowed. See Demo video about how to define a relationship. 11