Murali Mani CS3431 – Database Systems I Introduction.

Slides:



Advertisements
Similar presentations
1 Introduction to Database Systems CSE444 Instructor: Scott Vandenberg University of Washington Winter 2000.
Advertisements

Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Chapter 1 Instructor: Murali Mani Database Management Systems.
Mani-CS34311 CS3431 – Database Systems I Introduction Instructor: Murali Mani
Introduction to Databases
Rundensteiner-CS34311 CS3431 – Database Systems I Introduction Instructor: Elke A. Rundensteiner
Mani-CS34311 CS3431 – Database Systems I Logistics Instructor: Murali Mani
Introduction to Databases
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction Purpose of Database Systems View of Data Data Models Data Definition.
1 Introduction to Database Systems Ref. Ramakrishnan & Gehrke Chapter 1.
Introduction to Databases Transparencies
1 CENG 302 Introduction to Database Management Systems Nihan Kesim Çiçekli URL:
©Silberschatz, Korth and Sudarshan1.1Database System Concepts Chapter 1: Introduction n Why Database Systems? n Data Models n Data Definition Language.
Rundensteiner-CS34311 CS3431 – Database Systems I Logistics Instructor: Elke A. Rundensteiner
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1 Instructor: Ethan Jackson
CSCD34 - Data Management Systems,- A. Vaisman1 CSC D34 - Data Management Systems Instructor: Alejandro Vaisman University of Toronto.
Introduction to Databases
Introduction to Database Systems 1.  Assignments – 3 – 9%  Marked Lab – 5 – 10% + 2% (Bonus)  Marked Quiz – 3 – 6%  Mid term exams – 2 – (30%) 15%
Akram Jalal Ahlia University MIS College of Business and Finance 1.
Introduction to Data bases concepts
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
Introduction. 
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
1 INTRODUCTION TO DATABASE MANAGEMENT SYSTEM L E C T U R E
 DATABASE DATABASE  DATABASE ENVIRONMENT DATABASE ENVIRONMENT  WHY STUDY DATABASE WHY STUDY DATABASE  DBMS & ITS FUNCTIONS DBMS & ITS FUNCTIONS 
Introduction to Database Systems
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
Database Organization and Design
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 4:15 pm – 5:30.
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
©Silberschatz, Korth and Sudarshan1.1Database System Concepts COMP319: Introduction Course Structure Course Assessment Review: DBMS Structure Review: Terminology.
1 Chapter 1 Introduction to Databases Transparencies Last Updated: Pebruari 2010 By M. Arief Updated by RSO Feb 2011
Lecture 1: Overview of CSCI 485 Notes: I presented parts of this lecture as a keynote at Educator’s Symposium of OOPSLA Shahram Ghandeharizadeh Associate.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 2:30 pm – 3:30.
1 CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
INTRODUCTION TO DBS Database: a collection of data describing the activities of one or more related organizations DBMS: software designed to assist in.
1 Introduction to Databases. 2 Examples of Database Applications u Purchases from the supermarket u Purchases using your credit card u Booking a holiday.
Rundensteiner-CS34311 CS3431 – Database Systems I Introduction Instructor: Elke A. Rundensteiner
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Mr.Prasad Sawant, MIT Pune India Introduction to DBMS.
Introduction to Databases Transparencies © Pearson Education Limited 1995, 2005.
1 Geog 357: Data models and DBMS. Geographic Decision Making.
1 CS462- Database Systems Sang H. Son
Rundensteiner-CS34311 CS3431 – Database Systems I Logistics Instructor: Elke A. Rundensteiner
1 CS3431 – Database Systems I Logistics Instructor: Mohamed Eltabakh
CS3431: C-Term CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
Databases Salihu Ibrahim Dasuki (PhD) CSC102 INTRODUCTION TO COMPUTER SCIENCE.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 Database Management Systems Chapter 1.
1 CENG 351 CENG 351 Introduction to Data Management and File Structures Department of Computer Engineering METU.
Lecture 1: Overview of CSCI 485 Shahram Ghandeharizadeh Associate Professor Computer Science Department University of Southern California Presented by:
CS3431-B111 CS3431 – Database Systems I Logistics Instructor: Mohamed Eltabakh
Introduction to Databases Transparencies
Introduction to Database Systems Chapter 1
CS4222 Principles of Database System
Introduction Instructor: Elke A. Rundensteiner
Chapter 1: Introduction
Introduction Instructor: Mohamed Eltabakh
Instructor: Elke Rundensteiner
Introduction to Databases
Introduction to Databases
Lecture 1 Introduction to Database
Instructor: Murali Mani
Introduction to Databases
Database Management Systems CSE594
Introduction to Databases
Introduction to Database Systems
Introduction Instructor: Mohamed Eltabakh
Lecture 1: Overview of CSCI 485 Notes: I presented parts of this lecture as a keynote at Educator’s Symposium of OOPSLA Shahram Ghandeharizadeh Director.
Lecture 1: Overview of CSCI 485 Notes: I presented parts of this lecture as a keynote at Educator’s Symposium of OOPSLA Shahram Ghandeharizadeh Associate.
Presentation transcript:

Murali Mani CS3431 – Database Systems I Introduction

Murali Mani What is a Database System? Database Mangement System (DBMS) Software that allows us to create, use and maintain a database. usually too large to fit in computer memory at once Database: a large collection of related data. Focus: information, rather than computation

Murali Mani Database Applications E-commerce: inventory of books, CDs etc at Amazon, B&N etc. Banks, Airlines Universities GIS (Maps) – find restaurants closest to WPI WWW (World Wide Web) Bio-informatics (genome data) Digital Libraries

Murali Mani Focus of this course Tabular View of Data: Airline System Flight Passenger flightNostartdestinationmiles 101BOSLAX PVDLAX2900 pNameffNumberDoBmilesEarned Joe Mary flightNoffNumberdate Jan Jan 5 FlewIn

Murali Mani Focus of this Course: RDBMS Tabular view of data: Relational Model Data Model: A collection of concepts used for describing data Structures, Constraints, Operations Schema: Describes structures and constraints for a given application. RDBMS: Relational Database Management Systems Software that allows us to create, use and maintain a relational database.

Murali Mani Levels of Abstraction External schema (view) describes how users see the data Logical schema describes the logical structures used Physical schema describes files and indexes

Murali Mani Levels of Abstraction: Example Logical Schema: Flight, Passenger, FlewIn Physical Schema Index on flightNo for Flight Index on flightNo for FlewIn Views NoOfPassengers (flightNo, date, numPassengers)

Murali Mani Why use DBMS, and not files? Data independence and efficient access Reduced application development time Data integrity: Ensure consistency of data even with multiple users Recovery from crashes, security etc.

Murali Mani Data independence and efficient access Data independence Logical Data Independence: Logical schema can change, but views need not change Physical Data Independence: Physical schema such as indexes can change, but logical schema ned not change. Efficient Access Indexes allow you to see only the “necessary” portion of data, as opposed to sequential access in files.

Murali Mani Reduced application development time Higher level of data abstraction Queries are written in a high level language tailored for database applications. SELECT pname FROM Passengers WHERE flightNo = 101

Murali Mani Data Integrity Concurrent Access, DBMS ensures data is consistent eg: multiple airline staff trying to reserve a seat for different customers. Ideas: Transactions – grouping multiple instructions (reads/writes) into one atomic unit Locks – locking of resources (tables)

Murali Mani Recovery from Crashes, Security etc If the system crashes in the middle of a transaction, recovery should be possible. Ideas: logging, commit/rollback of transactions Also other features such as security, access control, privileges etc to facilitate administration.

Murali Mani Who use databases? End users DB application programmers Database Administrators Database design Security, Authorization Data availability, crash recovery Database tuning (for performance)

Murali Mani Why study DBMS? Need to process large amounts of data keep increasing Video, WWW, geographic information systems (GIS), genome data, digital libraries DBMS research is one of the most exciting areas in Computer Science !!

Murali Mani What will we learn in this course? Database Design Representing the application requirements formally in a conceptual model (ER, Entity Relationship Model) Translate an ER schema to relational schema Analyze the goodness of relational schema designed using normalization theory. Operations for Relational Model: Relational Algebra SQL: DDL (Data Definition Language) DML (Data Manipulation Language) Briefly study indexes, transactions, logging, security

Murali Mani Course Logistics Web Page: Lectures M, T, R – regular lectures F – discussion on project, H/Ws Grading H/W assignments (mostly 5): 10% Projects (in 3 phases): 25% mid term (Nov 18): 30% Final (Dec 15): 30% Class participation: 5%

Murali Mani H/Ws and Projects H/Ws will be due Friday before class. Project will be done in 3 phases Phase 0: Due Nov 11, 4:00 pm by Phase 1: Due Nov 29, 4:00 pm (via turnin) Phase 2: Due Dec 13, 4:00 pm (via turnin) Late submissions Marks for late submissions will not count. However we will be happy to grade them.

Murali Mani Tips for doing well Exams Master the topics Master the topics on time Project Ensure that you are on schedule Additional investigations can get up to 6 additional points.

Murali Mani Office Hours Will be posted on the web. Make use of the office hours to ensure you are mastering the materials.

Murali Mani Introductory Material Sets, Relations and Functions

Murali Mani Sets Unordered collection of objects Characteristics Unordered No duplicates (no object appears more than once in a set) Eg: Set of passengers, set of flights Recall the main set operations Union, intersection, complement Check subset

Murali Mani Relations Given multiple sets A1, A2, …, An, a relation is a set of n-tuples of the form (a11, a12, …, a1n), where a11 is an element of A1, a12 is an element of A2, and so on. Eg: suppose the set of course = {DB1, DB2}, the set of TAs = {Hong, Song}, then a relation between these two sets could be {(DB1, Hong), (DB1, Song), (DB2, Hong)}

Murali Mani Functions Given two sets A, B, a function f from A to B is denoted as f: A  B. This maps any value of A to one value of B. Eg: consider function from faculty members to depts {(Mike Gennert  CS), (Peter Hansen  Humanities)} Characteristics A is called domain B is called range No value of A can map to multiple B’s.

Murali Mani Functions Injection (one to one): No 2 values in A map to the same B Eg: set of Husbands  set of wives Surjections (onto) Every value in B has at least 1 value in A that maps to it Bijections One to one and onto