Introduction to Database Systems 1. Pop Quiz Question 1: How often do you use a database system or database system application? a)At least once a day.

Slides:



Advertisements
Similar presentations
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Advertisements

IiWAS2002, Bandung, Indonesia Teaching and Learning Databases Dr. Stéphane Bressan National University of Singapore.
Database Concepts Lec. 5. What Is a Database? Data are unprocessed raw facts that include text, number, images, audio, and video. Information is processed.
Mani-CS34311 CS3431 – Database Systems I Introduction Instructor: Murali Mani
Rundensteiner-CS34311 CS3431 – Database Systems I Introduction Instructor: Elke A. Rundensteiner
Using Relational Databases and SQL Steven Emory Department of Computer Science California State University, Los Angeles Lecture 1: Introduction to Relational.
1 Database Systems (Part I) Introduction to Databases I Overview  Objectives of this lecture.  History and Evolution of Databases.  Basic Terms in Database.
Introduction to Databases
CMSC424: Review. Database Management Systems Manage data ► Store data ► Update data ► Answer questions about the data.
1 Lecture 31 Introduction to Databases I Overview  Objectives of this lecture  History and Evolution of Databases  Basic Terms in Database and definitions.
Database Design Concepts Info 1408 Lecture 2 An Introduction to Data Storage.
Databases and Database Management System. 2 Goals comprehensive introduction to –the design of databases –database transaction processing –the use of.
1 Recap Database: –collection of data central to some enterprise that is managed by a Database Management System –reflection of the current state of the.
Compe 301 ER - Model. Today DBMS Overview Data Modeling Going from conceptual requirements of a application to a concrete data model E/R Model.
Introduction to Database Systems
Dr. Kalpakis CMSC 461, Database Management Systems Introduction.
Introduction To Databases IDIA 618 Fall 2014 Bridget M. Blodgett.
Database Design and Introduction to SQL
INTRODUCTION TO TRANSACTION PROCESSING CHAPTER 21 (6/E) CHAPTER 17 (5/E)
Information storage: Introduction of database 10/7/2004 Xiangming Mu.
CSC2012 Database Technology & CSC2513 Database Systems.
 Introduction Introduction  Purpose of Database SystemsPurpose of Database Systems  Levels of Abstraction Levels of Abstraction  Instances and Schemas.
Introduction. 
The Worlds of Database Systems Chapter 1. Database Management Systems (DBMS) DBMS: Powerful tool for creating and managing large amounts of data efficiently.
Database Management Systems 1 Introduction to Database Systems Instructor: Xintao Wu Ramakrishnan & Gehrke.
Course Introduction Introduction to Databases Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
Chapter 1 Introduction to Databases Pearson Education ©
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
1 Introduction to Database Systems. 2 Database and Database System / A database is a shared collection of logically related data designed to meet the.
Transaction Management: Concurrency Control CS634 Class 16, Apr 2, 2014 Slides based on “Database Management Systems” 3 rd ed, Ramakrishnan and Gehrke.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
CS 474 Database Design and Application Terminology Jan 11, 2000.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Weichao Wang.
Database Organization and Design
Dr. T. Y. Lin | SJSU | CS 157A | Fall 2011 Chapter 1 THE WORLDS OF DATABASE SYSTEMS 1.
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
“INTRODUCTION TO DATABASE AND SQL”. Outlines 2  Introduction To Database  Database Concepts  Database Properties  What is Database Management System.
1 CS 430 Database Theory Winter 2005 Lecture 16: Inside a DBMS.
The Worlds of Database Systems From: Ch. 1 of A First Course in Database Systems, by J. D. Pullman and H. Widom.
Copyright © by Curt Hill Database Introduction History Why we want to use them Other fun.
Introduction to Database Systems1. 2 Basic Definitions Mini-world Some part of the real world about which data is stored in a database. Data Known facts.
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.
The Relational Model1 Transaction Processing Units of Work.
CIS/SUSL1 Fundamentals of DBMS S.V. Priyan Head/Department of Computing & Information Systems.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
Introduction.  Administration  Simple DBMS  CMPT 454 Topics John Edgar2.
Chapter 10 Database Management. Data and Information How are data and information related? p Fig Next processing data stored on disk Step.
CSC 370 – Database Systems Introduction Instructor: Alex Thomo.
Transaction Processing Concepts Muheet Ahmed Butt.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
IS2803 Developing Multimedia Applications for Business (Part 2) Lecture 1: Introduction to IS2803 Rob Gleasure
Data The fact and figures that can be recorded in system and that have some special meaning assigned to it. Eg- Data of a customer like name, telephone.
CS3431: C-Term CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
uses of DB systems DB environment DB structure Codd’s rules current common RDBMs implementations.
CSCI-235 Micro-Computers in Science Databases. Database Concepts Data is any unorganized text, graphics, sounds, or videos A database is a collection.
1 Lecture1 Introduction to Databases Systems Database 1.
What Should a DBMS Do? Store large amounts of data Process queries efficiently Allow multiple users to access the database concurrently and safely. Provide.
Introduction to Database Systems Pop Quiz Question 1: How often do you use a database system or database system application? a)At least once.
MULTIUSER DATABASES : Concurrency and Transaction Management.
Very Brief Background on RDBMSs, Big Data/NoSQL Systems, Machine Learning AnHai Doan.
Introduction to Databases
CPSC-310 Database Systems
Introduction Instructor: Elke A. Rundensteiner
Databases Chapter 16.
Database Management System
Databases and Database Management Systems Chapter 9
THE WORLDS OF DATABASE SYSTEMS
Introduction to Database Systems
Introduction to Database Management System
Presentation transcript:

Introduction to Database Systems 1

Pop Quiz Question 1: How often do you use a database system or database system application? a)At least once a day (LOVE my db apps) b)About once a week (anything to get out of cleaning my room) c)Very rarely, if ever (only at gunpoint) 2

Pop Quiz Question 2: Who are the people below and how are they related to our course? Some clues: –3 out of 4 are multi-billionaires –3 out of 4 dropped out of school –(3 out of 4 are Jewish) 3 Conclusions: 1.Dropping out of school may be a good strategy 2.Patent your ideas! 3.Understanding and developing databases can make you rich or famous (or both)

What is a database? Database: A collection of data Data Base Management System (DBMS): A software system that facilitates the creation, maintenance and use of an electronic database Examples on the Web: – Examples off the Web: – 4

Some History 5

History: 1960s Required by companies with data processing needs: banking, airline reservations, corporate record keeping Databases were navigational Accessed by entire programs 6 Courses Databases AITaken By John Jane

History: 1970s Codd (at IBM) introduces the relational model Conceptually, data is stored in tables, connected by keys Codd introduces relational algebra, for querying, which became the basis for SQL End 1970s, first DBMS-s hit the market 7 CourseStudies DBS1 DBS2 AIS1 StudIdNamePhone Number S1John S2Jane

Moore’s Law Reversed Moore’s Law: Processing power doubles every 18 months Amount of data doubles every 9 months –Disk sales (# of bits) doubles every 9 months –Parkinson’s Law: Data expands to fill the space available for storage Moore’s Law reversed: –Time to process all data doubles every 18 months! Does your attention span double every 18 months? –No, so we need smarter data management techniques 8

Some of the Challenges 9

Designing the Schema Real world requirements for data are complex How do you choose which tables to store data in? Does it even matter? Example: University Database –Students have names, tz, addresses, phone numbers –Courses have numbers, names, number of credits –Students register for courses What kind of tables do we need? 10

Is this Good? Stud Name Stud TZ Stud Address Stud Phone Course Name Course Num Course Credits 11 StudentCourseInfo

Is this Good? Stud Name Stud TZ Stud Address Stud Phone 12 Students Courses Course Name Course Num Course Credits Stud TZ Course Num Registered Can the notion of “good” be quantified in some way?

Processing the Data How would we find all courses for which the student with TZ is registered? Can sorting help? How can we sort efficiently? Sorting Data Interview at Google 13

Persistent Data Jane has a joint bank account containing 150 shekels Jane goes to the ATM (כספומט) to withdraw 100 shekels 1) prompt user for credit card; 2) get balance from bank database; 3) if balance >= 100 then balance := balance - 100; 4) emit the money 5) if OK then put new balance into database; else print "sorry" What happens if the ATM crashes after line 3? line 4? Would exchanging lines 4 and 5 help? 14

Multiple Concurrent Users Jane and John have a joint bank account containing 150 shekels Jane goes to the ATM (כספומט) to withdraw 100 shekels John goes to a different ATM (כספומט) to withdraw 100 shekels Do they both succeed win withdrawing 100 shekels? What is the balance at the end? 15

Main Features of a DBMS 16

Some of the Main Features (1) Levels of Abstraction: The conceptual schema (= manner in which the data seems to be stored to the user, usually in tables), is independent from the physical schema (= actual method of storage on disk, e.g., using hash tables, etc). –Makes changes to physical storage easier –Makes access for user easier 17

Some of the Main Features (2) ACID Properties: Atomicity, consistency, isolation and durability –Basically implies that system will behave “as expected” even if there are multiple users and system crashes Efficiency: Although data will typically be huge (not fit in main memory), special access methods are available to make data retrieval efficient –We need efficiency in practice and not only an O(…) theoretical efficiency guarantee –“In theory there's no difference between theory and practice. In practice there is” 18