Chapter 3: Relational Databases

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

DB glossary (focus on typical SQL RDBMS, not XQuery or SPARQL)
What is a Database By: Cristian Dubon.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
Management Information Systems, Sixth Edition
Relational Databases Chapter 4.
1 Basic DB Terms Data: Meaningful facts, text, graphics, images, sound, video segments –A collection of individual responses from a marketing research.
Introduction to Structured Query Language (SQL)
Database Management: Getting Data Together Chapter 14.
Data Management Design
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
CSC 2720 Building Web Applications Database and SQL.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
IST Databases and DBMSs Todd S. Bacastow January 2005.
What is a Database? A database is any collection of data.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Database Lecture # 1 By Ubaid Ullah.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapter 9 SQL and RDBMS Part C. SQL Copyright 2005 Radian Publishing Co.
PHP Programming with MySQL Slide 8-1 CHAPTER 8 Working with Databases and MySQL.
I Copyright © 2004, Oracle. All rights reserved. Introduction.
Chapter 2 CIS Sungchul Hong
RDB/1 An introduction to RDBMS Objectives –To learn about the history and future direction of the SQL standard –To get an overall appreciation of a modern.
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
CODD’s 12 RULES OF RELATIONAL DATABASE
I Copyright © Oracle Corporation, All rights reserved. Introduction.
© 2007 by Prentice Hall (Hoffer, Prescott & McFadden) 1 Introduction to SQL.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 UNIT 6: Chapter 7: Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
Databases and Statistical Databases Session 4 Mark Viney Australian Bureau of Statistics 5 June 2007.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
SQL Structured Query Language Programming Course.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
Relational Database. Database Management System (DBMS)
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
SQL: DDL. SQL Statements DDL - data definition language –Defining and modifying data structures (metadata): database, tables, views, etc. DML - data manipulation.
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 7 (Part a): Introduction to SQL Modern Database Management 9 th Edition Jeffrey A.
Database Environment Chapter 2. Data Independence Sometimes the way data are physically organized depends on the requirements of the application. Result:
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
Management Information Systems, 4 th Edition 1 Chapter 8 Data and Knowledge Management.
SQL Jan 20,2014. DBMS Stores data as records, tables etc. Accepts data and stores that data for later use Uses query languages for searching, sorting,
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
Relational Database Management System(RDBMS) Structured Query Language(SQL)
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
Lecture 03 Constraints. Example Schema CONSTRAINTS.
CpSc 3220 The Language of SQL Chapter 17 Modifying Data.
7 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel 7.6 Advanced Select Queries SQL provides useful functions that.
CSC314 DAY 8 Introduction to SQL 1. Chapter 6 © 2013 Pearson Education, Inc. Publishing as Prentice Hall SQL OVERVIEW  Structured Query Language  The.
1 Database Fundamentals Introduction to SQL. 2 SQL Overview Structured Query Language The standard for relational database management systems (RDBMS)
Introduction to Core Database Concepts Getting started with Databases and Structure Query Language (SQL)
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Understand Data Definition Language (DDL) Database Administration Fundamentals LESSON 1.4.
SQL Basics Review Reviewing what we’ve learned so far…….
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 and DBMSs Todd S. Bacastow January
SQL: Schema Definition and Constraints Chapter 6 week 6
The Basics of Data Manipulation
Introduction To Database Systems
Server-Side Application and Data Management IT IS 3105 (FALL 2009)
Chapter 4 Relational Databases
Structured Query Language (Data definition Language)
Lecturer: Mukhtar Mohamed Ali “Hakaale”
The Basics of Data Manipulation
בסיסי נתונים - מצגת ההרצאה - 1.
مقدمة في قواعد البيانات
Data Model.
Chapter 2 Database Environment Pearson Education © 2009.
DATABASE Purpose of database
Presentation transcript:

Chapter 3: Relational Databases Information Systems Chapter 3: Relational Databases

A relational database is: A set of related tables that is created and managed by a database management system (DBMS) Tables are linked using common data fields Integrity rules are part of the database and are enforced by the DBMS A relational DBMS (RDBMS) should provide the following facilities: – Query interface – Transactions processing – Concurrent access – Security

Example

Another description: PUBLISHERS(publisherId,publisherName) TITLES(isbn,title,editionNumber,description,publisherId,copyright,imageFile,price) AUTHORISBN(isbn,authorId) AUTHORS(authorId,firstName,lastName)

And a last one:

Primary Definitions Table, a set of columns that contain data. In the old days, a table was called a file. Row, a set of columns from a table reflecting a record. Index, an object that allows for fast retrieval of table rows. Every primary key and foreign key should have an index for retrieval speed. Primary key, often designated pk, is 1 or more columns in a table that makes a record unique.

Foreign key, often designated fk, is a common column common between 2 tables that define the relationship between those 2 tables. Foreign keys are either mandatory or optional. Mandatory forces a child to have a parent by creating a not null column at the child. Optional allows a child to exist without a parent, allowing a nullable column at the child table (not a common circumstance).

Entity Relationship Diagram or ER is a pictorial representation of the application schema (see the next chapter).

Constraints are rules residing in the database’s data dictionary governing relationships and dictating the ways records are manipulated, what is a legal move vs. what is an illegal move. These are of the utmost importance for a secure and consistent set of data.

Data Manipulation Language or DML, sql statements that insert, update or delete database in a database. Data Definition Language or DDL, sql used to create and modify database objects used in an application schema.

Relational Design The design of the application schema will determine the usability and query ability of the application. Done incorrectly, the application and users will suffer until someone else is forced to rewrite it. Main chalenge: How to efficiently design a “good” relational database  see next chapters