Relational Databases Farrokh Alemi, PhD Narrated by Farhat Fazelyar

Slides:



Advertisements
Similar presentations
Understanding Relational Databases Basic Concepts and Applications for Qualitative Content Analysis.
Advertisements

NMED 3850 A Advanced Online Design February 25, 2010 V. Mahadevan.
Access A Relational Database Management System. Prof. Leighton2 Database ► A database is a collection of data that’s related to a particular topic ► A.
1 DATABASE TECHNOLOGIES BUS Abdou Illia, Fall 2007 (Week 3, Tuesday 9/4/2007)
Relational Database Concepts. Let’s start with a simple example of a database application Assume that you want to keep track of your clients’ names, addresses,
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
BUS1MIS Management Information Systems Semester 1, 2012 Access: Creating a Database Week 6 Lecture 2.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
Microsoft Access 2010 Crash Course Part 1 Academic Health Center Training (352)
Microsoft Access. Microsoft access is a database programs that allows you to store retrieve, analyze and print information. Companies use databases for.
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
McGraw-Hill/Irwin © 2008 The McGraw-Hill Companies, All Rights Reserved Chapter 7 Storing Organizational Information - Databases.
28 Database Theory 28. Database Theory We have looked at the basics of how databases work: Database Tables A A Relational Databases C C Types of Data.
Microsoft Access 2013 ®® Case Study Creating a Database.
Our world depends on databases
Data Modeling (Entity Relationship Diagram)
Databases: What they are and how they work
Data Modeling Using the ERD
Let try to identify the conectivity of these entity relationship
Microsoft Office Access 2010 Lab 3
Databases – Exam questions
Databases Key Revision Points.
CHAPTER 7 DATABASE ACCESS THROUGH WEB
Chapter 2: Relational Model
Database Normalization
File System Structure How do I organize a disk into a file system?
Design a Relational Database Identify Database Purpose
Database Management  .
Access Busn 216.
Dead Man Visiting Farrokh Alemi, PhD Narrated by …
Database Concepts.
Normal Distribution Farrokh Alemi Ph.D.
What is a Database and Why Use One?
Case Study Creating a Database
INFO/CSE 100, Spring 2005 Fluency in Information Technology
Normalization of Databases
What Are Databases? Organized by Dr. Farrokh Alemi PhD
Entity Relationship Diagrams
Types of Joins Farrokh Alemi, Ph.D.
SQL for Cleaning Data Farrokh Alemi, Ph.D.
What is a Database? A collection of data organized in a manner that allows access, retrieval, and use of that data.
Rank Order Function Farrokh Alemi, Ph.D.
Systems Analysis and Design
Propagation Algorithm in Bayesian Networks
Creating Tables & Inserting Values Using SQL
Database.
Relationships as Primary & Foreign Keys
INFO/CSE 100, Spring 2006 Fluency in Information Technology
Flat Files & Relational Databases
Wednesday, September 21, 2016 Farrokh Alemi, PhD.
Normalization Organized by Farrokh Alemi, Ph.D.
Indexing & Computational Efficiency
Selecting the Right Predictors
M1G Introduction to Database Development
Advanced Database Concepts: Reports & Views
Spreadsheets, Modelling & Databases
Microsoft Office Access is the best –selling personal computer database management system. What is Access?
DATABASE TECHNOLOGIES
Introduction to Relational Database Introducing PRIMARY KEY
Do it now – PAGE 8 You will find your do it now task in your workbook – look for the start button! Sunday, 12 May 2019.
Database Management system
Expectation And Variance of Random Variables
Microsoft Access Date.
Databases WOW!! A database is a collection of related data.
Shelly Cashman: Microsoft Access 2016
BTEC ICT – Unit 18 With Mr Griffiths.
Relational data model. Codd's Rule E.F Codd was a Computer Scientist who invented Relational model for Database management. Based on relational model,
Nagendra Vemulapalli Access chapters 1&2 Nagendra Vemulapalli
Information system analysis and design
Presentation transcript:

Relational Databases Farrokh Alemi, PhD Narrated by Farhat Fazelyar In this section we will discuss the importance or Relational Databases and why we use them. The PowerPoints provided are organized by Dr. Farrokh Alemi and narrated by Farhat Fazelyar

Relational Databases Explained This video describes how relational databases work.

More than One Table of Data Relational Databases Explained In a relational databases data are kept in multiple tables, which are related to each other using common fields. More than One Table of Data

Relational Databases Explained We demonstrate the concept through two tables of data, one about doctors, the other about patients. Then a visit table may list patients visits to one of the doctors. Example

Patients Imagine a table of data that holds patient information

Patients Doctors Imagine another table that hold Information about doctors and clinicians. This is like saying that we will have a list of patients and a list of Doctors.

Events that involve doctors and patients We want to use these lists to describe events that involve both doctors and patients.

Patients Patient ID For the Patients we might have information such as a patient ID

Patients Patient ID Patient Name Patient Name

Patients Patient Name OS Patient ID and what operating system they are using. The table may contain other information as well but for simplicity lets stay with these three fields of information about the patients.

Doctors Doctor ID For the Doctors we can have a Doctors ID

Doctors Doctor ID Class Name Doctors Name

Doctors Doctor ID Class Name Doctor’s System And doctor’s operating system. There may be other information as well but lets keep this simple and assume that we have just these three pieces of information.

Patients Table Patient ID Patient Name MAC OS X Patient1001 John Snow If we look at the patient’s table, we might have a table that looks something like this. There are three fields, patient ID the patient name and the operating system. The first row of data shows patient 1001 who is John Snow and who uses MAC operating system X.

Patients Table Patient ID Patient Name MAC OS X Patient1001 John Snow Carol Alan IRIX Patient 1002 is Carol Alan who uses IRIX as an operating system.

Patients Table Patient ID Patient Name MAC OS X Patient1001 John Snow Carol Alan IRIX Patient1003 Blake Colin Windows The table contains information on other patients. Here we are showing patients 1003 and 1004. Patient1004 Owen Paul Unix

Patients Table Unique Patient ID Patient Name MAC OS X Patient1001 Jon snow MAC OS X Patient1002 Carol Alan IRIX Patient1003 Blake Colin Windows IF were trying to refer to one of these patients record, two patients may have the same name or use the same operating system. The only field that shows a unique patient is the patient ID field. There are no duplicates allowed in the patient ID field. Patient1004 Owen Paul Unix

Patients Table Primary Key Patient ID Patient Name MAC OS X Jon snow MAC OS X Patient1002 Carol Alan IRIX Patient1003 Blake Colin Windows A field that is uniquely identifies all entries in the table is also called primary key. Every table provides information about records identified by its primary key. Patient1004 Owen Paul Unix

Doctors Table Doctors ID Doctors Name MAC OS X DR2004 David Gordan Windows Let us also imagine some data in the table about the Doctors. This table includes the doctor’s ID, name and operating system. In the first row of the data we have doctor DR2004. His name is David Gordan and he is using windows operating system.

Doctors Table Doctors ID Doctors Name MAC OS X DR2004 David Gordan Windows DR2006 Nicola Pippa IRIX DR2008 Rachel Robert Windows In the second row we have DR2006. His name is Nicola Pippa and he is using IRIX operating system. Each row describes a different doctor. The primary key is the field “Doctors ID”. All of the information in this table is about unique cases reported in each row. DR2010 Julian Liam MAC OS X

Visit Table Patient ID Doctors ID Patient1001 DR2004 To describe a patients visit to a doctor, we set up a third table called the visit table. We need to show that a particular patient visited a particular doctor. We can do this by just using the primary keys of each of the two tables. Once we know the IDs, we can look up the remaining information with no problem in each of the relevant tables. In the first row of this table we are showing that patient 1001 was seen by Doctor 2004.

Visit Table Patient ID Patient1001 Patient1002 Patient1003 Patient1004 Doctors ID DR2004 DR2006 DR2008 In subsequent rows we show that who various patients are seeing. Here, for example, we show that patient 1004 is also seen by doctor 2004.

Visit Table Massive Patient ID Patient1001 Patient1002 Patient1003 Doctors ID DR2004 DR2006 DR2008 You can go ahead and add as many visits as you want to the visit table. It often grows to thousands or millions of visits. Massive

Massive but Compact & Efficient Visit Table Patient ID Patient1001 Patient1002 Patient1003 Patient1004 Doctors ID DR2004 DR2006 DR2008 Massive but Compact & Efficient Yet none of the information on patient or doctor tables are duplicated in the visit table. So the table is compact and efficient. This makes a world of difference in data analysis.

Patient & Doctor Tables Remain Small Visit Table Patient ID Patient1001 Patient1002 Patient1003 Patient1004 Doctors ID DR2004 DR2006 DR2008 Patient & Doctor Tables Remain Small Patient and doctor tables remain small even though the visit table may be massive.

Massive but Compact & Efficient Visit Table Patient ID Patient1001 Patient1002 Patient1003 Patient1004 Doctors ID DR2004 DR2006 DR2008 Massive but Compact & Efficient Visit Table None of the information on patient or doctor tables are duplicated in the visit table. So the visit table is compact and efficient.

Only Information that Changes Visit Table Patient ID Patient1001 Patient1002 Patient1003 Patient1004 Doctors ID DR2004 DR2006 DR2008 Only Information that Changes The visit table has the minimum amount of information. Only information that changes from visit to visit is recorded in the visit table. The rest of the information that does not change from visit to visit are kept in auxiliary tables. This makes a world of difference in data storage and analysis.

massive but Compact databases are organized using Relational Databases: Multiple Tables & the relationships among these Tables Massive but compact databases are organized using multiple tables & relationships among these tables