Lingma Acheson Department of Computer and Information Science IUPUI

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.
Relationships Relational Database. Identifying Entities… In the previous tutorial you learnt about identifying entities in a flat file database. Also.
Maintenance Modifying the data –Add records –Delete records –Update records Modifying the design –Add fields into tables –Remove fields from a table –Change.
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.
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 & Data Warehouses Chapter 3 Database Processing.
N. J. Taylor Database Management Systems (DBMS) 1.
DAY 15: ACCESS CHAPTER 2 Larry Reaves October 7,
DAY 14: ACCESS CHAPTER 1 Tazin Afrin October 03,
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
CIS 250 Advanced Computer Applications Introduction to Access.
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.
9c. Line Charts CSCI N207 Data Analysis Using Spreadsheet Department of Computer and Information Science, IUPUI Lingma Acheson
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.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
3. Relational Model Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
2a. What and Why Database? Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
1 MS Access. 2 Database – collection of related data Relational Database Management System (RDBMS) – software that uses related data stored in different.
7. Data Import Export Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis Using Spreadsheets 1.
MSOffice Access Microsoft® Office 2010: Illustrated Introductory 1 Part 1 ® Database & Table.
9d. Pie Charts CSCI N207 Data Analysis Using Spreadsheet Department of Computer and Information Science, IUPUI Lingma Acheson
5a – While Loops Lingma Acheson Department of Computer and Information Science, IUPUI CSCI N331 VB.NET Programming.
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.
Creating a database table
Understanding Data Storage
Revised: 2 April 2004 Fred Swartz
Microsoft Access 2016 Design and Implement Powerful Relational Databases Chapter 6.
3d. Structured Query Language – JOIN Operations
The Relational Model and Database Normalization
The Relational Model Chapter Two DATABASE CONCEPTS, 3rd Edition
and Defining Table Relationships
Relational Databases.
CIS 155 Table Relationship
Database Systems: Design, Implementation, and Management Tenth Edition
Database Management Systems (DBMS)
CSCI-100 Introduction to Computing
Databases A brief introduction….
Design and Implement Powerful Relational Databases Chapter 6
Databases and Information Management
What is a Database and Why Use One?
Chapter 9 Designing Databases
Poor Naming Standards.
Database Processing: David M. Kroenke’s Chapter Three:
Relational Queries (query 12) Display vendor contact info (contact person and phone number) for inventory products (relationship query) Query: Inventory.
CS122 Using Relational Databases and SQL
Databases and Information Management
Spreadsheets, Modelling & Databases
Copyright © 2018, 2015, 20 Pearson Education, Inc. All Rights Reserved Database Concepts Eighth Edition Chapter # 2 The Relational Model.
Programming Concepts and Database
7 – Variables, Input and Output
CS122 Using Relational Databases and SQL
Microsoft Access Understanding Relationships
ICT Database Lesson 2 Designing a Database.
CS1222 Using Relational Databases and SQL
Databases 1.
CS122 Using Relational Databases and SQL
CS122 Using Relational Databases and SQL
Database Systems: Design, Implementation, and Management
4a- If And Else Lingma Acheson CSCI N331 VB .NET Programming
Presentation transcript:

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

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.

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

Relations E.g. Relations: Non-relations:

Relations Non-relations:

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

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.

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.

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.

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”.

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.