1 Relational Databases. 2 Find Databases here… 3 And here…

Slides:



Advertisements
Similar presentations
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Advertisements

LBSC 690 Session #7 Structured Information: Databases Jimmy Lin The iSchool University of Maryland Wednesday, October 15, 2008 This work is licensed under.
M.S. Access Module CAS 133 Russ Erdman. M.S. Access Module Assignment Overview Two options for the unit: All students complete Units A, B and C In class.
Web Characterization Week 9 LBSC 690 Information Technology.
CSE 190: Internet E-Commerce Lecture 10: Data Tier.
Web Characterization Week 11 LBSC 690 Information Technology.
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.
Databases Week 7 LBSC 690 Information Technology.
Week 6 LBSC 690 Information Technology
Databases Week 6 LBSC 690 Information Technology.
© Anselm SpoerriInfo + Web Tech Course Information Technologies Info + Web Tech Course Anselm Spoerri PhD (MIT) Rutgers University
LBSC 690: Session 7 Relational Databases
Spreadsheets and Databases Class 8 LBSC 690 Information Technology.
Relational Databases Week 7 LBSC 690 Information Technology.
PHP Programming Part II and Database Design Session 3 INFM 718N Web-Enabled Databases.
DAY 21: MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Akhila Kondai October 30, 2013.
IST Databases and DBMSs Todd S. Bacastow January 2005.
N. J. Taylor Database Management Systems (DBMS) 1.
Page 1 ISMT E-120 Desktop Applications for Managers Introduction to Microsoft Access.
Database Design Concepts
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
DATABASE MANAGEMENT SYSTEMS BASIC CONCEPTS 1. What is a database? A database is a collection of data which can be used: alone, or alone, or combined /
Introduction –All information systems create, read, update and delete data. This data is stored in files and databases. Files are collections of similar.
Simple Database.
Mr. Justin “JET” Turner CSCI 3000 – Fall 2015 CRN Section A – TR 9:30-10:45 CRN – Section B – TR 5:30-6:45.
INFM 603: Information Technology and Organizational Context Jimmy Lin The iSchool University of Maryland Wednesday, March 5, 2014 Session 6: Relational.
Databases Session 5 LIS 7008 Information Technologies LSU/SLIS.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Database Management. ICT5 Database Administration (DBA) The DBA’s tasks will include the following: 1. The design of the database. After the initial design,
MIS 301 Information Systems in Organizations Dave Salisbury ( )
MIS 301 Information Systems in Organizations Dave Salisbury ( )
CTFS Workshop Shameema Esufali Suzanne Lao Data coordinators and technical resources for the network
Chapter 2 Adapted from Silberschatz, et al. CHECK SLIDE 16.
Normalization (Codd, 1972) Practical Information For Real World Database Design.
GUS: 0262 Fundamentals of GIS Lecture Presentation 3: Relational Data Model Jeremy Mennis Department of Geography and Urban Studies Temple University.
IST 210: ORGANIZATION OF DATA Chapter 1. Getting Started IST210 1.
SQL 101 for Web Developers 14 November What is a database and why have one? Tables, relationships, normalization SQL – What SQL is and isn’t – CRUD:
PHP and MySQL CS How Web Site Architectures Work  User’s browser sends HTTP request.  The request may be a form where the action is to call PHP.
Databases Week 5 LBSC 690 Information Technology.
Instructor: Dema Alorini Database Fundamentals IS 422 Section: 7|1.
CS 1308 Computer Literacy and the Internet
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
What have we learned?. What is a database? An organized collection of related data.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
Chapter 2: Intro to Relational Model. 2.2 Example of a Relation attributes (or columns) tuples (or rows)
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
U:/msu/course/cse/103 Day 18, Slide 1 CSE 103 Day 18 If you are not enrolled in CSE 103, please save and log out by 10:10.
Introduction to Access Chapter 13 pages 1-4. What is a database??? Related information is stored in databases  All SC student information is stored in.
Planning & Creating a Database By Ms. Naira Microsoft Access.
CTFS Workshop Shameema Esufali Asian data coordinator and technical resource for the network
Understand Primary, Foreign, and Composite Keys Database Administration Fundamentals LESSON 4.2.
* 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.
Drill Consider the following tables with the following fields: Student: FName, LName, StudentID, Age, Yr, Course Grades: ID, P1, P2, P3 1.Display the.
Howard Paul. Sequential Access Index Files and Data File Random Access.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
Data Modeling Session 12 INST 301 Introduction to Information Science.
DAY 9: DATABASES Rohit February 17,
MICROSOFT ACCESS – CHAPTER 5 MICROSOFT ACCESS – CHAPTER 6 MICROSOFT ACCESS – CHAPTER 7 Sravanthi Lakkimsety Mar 14,2016.
Chapter 1. Getting Started IST 210: Organization of Data IST2101.
1 The Relational Data Model David J. Stucki. Relational Model Concepts 2 Fundamental concept: the relation  The Relational Model represents an entire.
Entity-Relationship Model
SQL.
Databases and Information Management
Databases and Information Management
Chengyu Sun California State University, Los Angeles
A Very Brief Introduction to Relational Databases
Database Connections.
Week 6 LBSC 690 Information Technology
Presentation transcript:

1 Relational Databases

2 Find Databases here…

3 And here…

4 The “Deep Web” Dynamic pages, generated from databases Not easily discovered using crawling Perhaps times larger than surface Web Fastest growing source of new information

5 Deep Web 60 Deep Sites Exceed Surface Web by 40 Times Name TypeURL Web Size (GBs) National Climatic Data Center (NOAA)Publichttp:// s.html 366,000 NASA EOSDISPublichttp://harp.gsfc.nasa.gov/~imswww/pub/imswelcome/ plain.html 219,600 National Oceanographic (combined with Geophysical) Data Center (NOAA) Public/Feehttp:// 32,940 AlexaPublic (partial) Right-to-Know Network (RTK Net)Publichttp:// MP3.comPublichttp://

6 Content of the Deep Web

7 Database Basics What is a database? –Collection of data, organized to support access –Models some aspects of reality Components of a relational database: –Field = an “atomic” unit of data –Record = a collection of related fields –Table = a collection of related records Each record is one row in the table Each field is one column in the table –Primary Key = the field that uniquely identifies a record –Database = a collection of tables

8 Why “Relational”? Databases model some aspects of reality A relational database views the world in terms of entities and relations between them

9 The Registrar Example What do we need to know (i.e., model)? –Something about the students (e.g., first name, last name, , department) –Something about the courses (e.g., course ID, description, enrolled students, grades) –Which students are in which courses

10 A First Try Put everything in a big table… Discussion: Why is this a bad idea?

11 Good Database Design Save space –Save each fact only once More rapid updates –Every fact only needs to be updated once More rapid search –Finding something once is good enough Avoid inconsistency –Changing data once changes it everywhere

12 Another Try... Student Table Department TableCourse Table Enrollment Table

13 Approaches to Normalization For simple problems: –Start with “binary relationships”: pairs of fields that are related –Group together wherever possible –Add keys where necessary For more complicated problems: –Entity relationship modeling (LBSC 670)

14 Some Lingo “Primary Key” uniquely identifies a record –e.g., student ID in the student table “Foreign Key” is primary key in the other table –It need not be unique in this table

15 The Data Model Student Table Department TableCourse Table Enrollment Table

16 Project SELECT Student ID, Department

17 Restrict WHERE Department ID = “HIST”

18 Join “Joined” Table Student Table Department Table

19 Relational Operations Choosing columns: SELECT –Based on their label Choosing rows: WHERE –Based on their contents Joining tables: JOIN These can be specified together department ID = “HIST” SELECT Student ID, Dept WHERE Dept = “History”

20 Some SQL SQL = Structured Query Language Used in many types of database systems

21 Select query SELECT LastName, FirstName from StudentTable StudentTable

22 Select with Restriction SELECT LastName, FirstName from StudentTable where DeptID = ‘HIST’ Will return –Peters, Kathy –Smith, Chris

23 Select with Restriction SELECT StudentID from EnrollmentTable where Grade > 81 Enrollment Table

24 Select with Join SELECT LastName, FirstName from StudentTable JOIN EnrollmentTable on StudentTable.StudentID =EnrollmentTable.StudentID where EnrollmentTable.Grade > 95 Results: Smith, John Student Table Enrollment Table

25 Discussion Point How is a relational database different from a spreadsheet?