CSE544 Introduction Monday, March 29, 2004. Staff Instructor: Dan Suciu –CSE 662, –Office hours: Tuesday, 1-2pm. TA: Nilesh Dalvi.

Slides:



Advertisements
Similar presentations
1 Introduction to Database Systems CSE 444 Lecture #1 January 6, 2003 Guest Lecturer: Prof. Dan Suciu (Alon will explain when he returns)
Advertisements

Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chapter 1 Instructor: Mirsad Hadzikadic.
Introduction Susan B. Davidson University of Pennsylvania CIS330 – Database & Information Systems Some slide content courtesy of Tova Milo.
Introduction to Database Systems Ch. 1, Ch. 2 Mr. John Ortiz Dept. of Computer Science University of Texas at San Antonio.
1 Introduction to Information Systems SSC, Semester 6 Lecture 01.
Fundamentals, Design, and Implementation, 9/e SI654 Database Application Design Instructor: Dragomir R. Radev Winter 2005.
CS6003 Database Systems (10 credits) Lecturers: Adrian O’Riordan (term 1), Dr. Kieran Herley (term 2) Term 1 Contact: is office.
1 Introduction to Information Systems SSC, Semester 6 Lecture 01.
Introduction to Database Systems CSE 444 Lecture #1 January 5th, 1998.
ECE 569 Database System EngineeringSpring 2003 ECE 569 Database System Engineering Spring 2003 Yanyong Zhang
1 ICS 223: Transaction Processing and Distributed Data Management Winter 2008 Professor Sharad Mehrotra Information and Computer Science University of.
CSE 636 Data Integration Introduction. 2 Staff Instructor: Dr. Michalis Petropoulos Location: 210 Bell Hall Office Hours:
Databases and Database Management System. 2 Goals comprehensive introduction to –the design of databases –database transaction processing –the use of.
Database Management Systems CSE 594 Lecture #1 April 4 th, 2002.
1 Introduction to Database Systems CSE 444 Lecture #1 January 5, 2004 Alon Halevy.
1 Database Systems Lecture #1. 2 Staff Lecturer: Yael Amsterdamer – –Schreiber, Databases lab, M-20, –Office.
1 Introduction to Database Systems CSE 444 Lecture #1 March 31, 2008.
1 Introduction to Database Systems CSE 444 Lecture #1 January 3, 2005.
1 Introduction to Database Systems CSE 444 Lecture #1 January 4, 2006.
1 Introduction to Database Systems CSE 444 Lecture #1 September 27, 2006.
1 Database Systems Lecture #1. 2 Staff Instructor: Tova Milo – –Schreiber, Room 314, –Office hours: See.
CSE544 Introduction Monday, March 27, Staff Instructor: Dan Suciu –CSE 662, –Office hours: Wednesdays, 12pm-1pm TA: Bhushan.
1 Introduction to Database Systems CSE 444 Lecture #1 September 28, 2005.
1 CS222: Principles of Database Management Fall 2010 Professor Chen Li Department of Computer Science University of California, Irvine Notes 01.
CSC2012 Database Technology & CSC2513 Database Systems.
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.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Xintao Wu.
Database Management Systems 1 Ramakrishnan & Gehrke Introduction to Database Systems Chpt 1 Instructor: Weichao Wang.
CS461: Principles and Internals of Database Systems Instructor: Ying Cai Department of Computer Science Iowa State University Office:
Introduction to Database Systems Fundamental Concepts Irvanizam Zamanhuri, M.Sc Computer Science Study Program Syiah Kuala University Website:
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 4:15 pm – 5:30.
Christoph F. Eick Introduction Data Management Today 1. Introduction to Databases 2. Questionnaire 3. Course Information 4. Grading and Other Things.
10/16/2015 1Yan Huang - Introduction Chapter 1: Introduction What is a DBMS? What is a DBMS? A little history of DB A little history of DB Major Components.
What is a database A database is any organized collection of data. Some examples of databases you may encounter in your daily life are: a telephone book.
SQL Structured Query Language Programming Course.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: M,T,W,Th,F 2:30 pm – 3:30 pm,
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
Chapter 1 Introduction Yonsei University 1 st Semester, 2015 Sanghyun Park.
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.
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 2:30 pm – 3:30.
CS 541 Lecture Slides Sunil Prabhakar CS541 Database Systems.
Fall CSE330/CIS550: Introduction to Database Management Systems Prof. Susan Davidson Office: 278 Moore Office hours: TTh
1 Introduction to Database Systems CSE 444 Lecture #1 September 26, 2007.
Database Management System without and with using Oracle 1.
Christoph F. Eick: Final Words COSC Topics Covered in COSC 3480  Data models (ER, Relational, XML)  Using data models; learning how to store real.
Introduction to Database Systems CSE 444 Lecture #1 September,
Introduction to Information Systems
Database Systems Lecture #1.
Database Systems Lecture #1.
CPSC-310 Database Systems
Introduction to Database Systems CSE 444
Database Systems Lecture #1.
Introduction to Database Systems
Topics Covered in COSC 6340 Data models (ER, Relational, XML (short))
Principles of Database Management Systems CSE 544
Topics Covered in COSC 6340 Data models (ER, Relational, XML)
CSE544 Lecture 1: Introduction
Introduction to Database Systems CSE 444
Introduction to Database Management Systems
Introduction to Database Systems CSE 444
Introduction to Database Systems CSE 444
Introduction to Database Systems CSE 444
Introduction to Database Systems CSE 444
Introduction to Database Systems CSE 444
Presentation transcript:

CSE544 Introduction Monday, March 29, 2004

Staff Instructor: Dan Suciu –CSE 662, –Office hours: Tuesday, 1-2pm. TA: Nilesh Dalvi –Office hours: Fri 12:00 to 1:00. Mailing list: – Web page: (a lot of stuff already there)

Course Times Mon, Wed, 12-1:30pm Guest lecturer: Nilesh, on March 31st Final: –8:30-10:20 a.m. Thursday, Jun. 10, 2004

Goals of the Course Purpose: –Using database systems –Foundations of data management. –Issues in building database systems. –Introduction to current research in databases.

Grading Homeworks: 25% –HW1: programming (SQL, Xquery, …) –HW2: theory Project: 30% –More later. Paper reviews: 20% Final: 25%

Textbook Database Management Systems, Ramakrishnan and Gehrke. Also: Foundations of Databases, Abiteboul, Hull & Vianu Also: Some papers to read (see website)

Other Useful Texts Database systems: the complete book (Ullman, Widom and Garcia-Molina) Parallel and Distributed DBMS (Ozsu and Valduriez) Transaction Processing (Gray and Reuter) Data and Knowledge based Systems (volumes I, II) (Ullman) Data on the Web (Abiteboul, Buneman, Suciu) Readings in Database Systems (Stonebraker and Hellerstein) Proceedings of SIGMOD, VLDB, PODS conferences.

Prerequisites Officially: none Real prerequisites: –Programming languages –Logic –Complexity theory –Algorithms and data structures

What Is a Relational Database Management System ? Database Management System = DBMS Relational DBMS = RDBMS A collection of files that store the data A big C program written by someone else that accesses and updates those files for you Examples: Oracle, DB2, SQL Server

Where are RDBMS used ? Backend for traditional “database” applications Backend for large Websites Backend for Web services

Example of a Traditional Database Application Suppose we are building a system to store the information about: students courses professors who takes what, who teaches what

Can we do it without a DBMS ? Sure we can! Start by storing the data in files: students.txt courses.txt professors.txt Now write C or Java programs to implement specific tasks

Doing it without a DBMS... Enroll “Mary Johnson” in “CSE444”: Read ‘students.txt’ Read ‘courses.txt’ Find&update the record “Mary Johnson” Find&update the record “CSE444” Write “students.txt” Write “courses.txt” Read ‘students.txt’ Read ‘courses.txt’ Find&update the record “Mary Johnson” Find&update the record “CSE444” Write “students.txt” Write “courses.txt” Write a C program to do the following:

Problems without an DBMS... System crashes: –What is the problem ? Large data sets (say 50GB) –Why is this a problem ? Simultaneous access by many users –Lock students.txt – what is the problem ? Read ‘students.txt’ Read ‘courses.txt’ Find&update the record “Mary Johnson” Find&update the record “CSE444” Write “students.txt” Write “courses.txt” Read ‘students.txt’ Read ‘courses.txt’ Find&update the record “Mary Johnson” Find&update the record “CSE444” Write “students.txt” Write “courses.txt” CRASH !

Enters a DMBS Data files Database server (someone else’s C program) Applications connection (ODBC, JDBC) “Two tier system” or “client-server”

Functionality of a DBMS The programmer sees SQL, which has two components: Data Definition Language - DDL Data Manipulation Language - DML –query language Behind the scenes the DBMS has: Query engine Query optimizer Storage management Transaction Management (concurrency, recovery)

How the Programmer Sees the DBMS Start with DDL to create tables: Continue with DML to populate tables: CREATE TABLE Students ( Name CHAR(30) SSN CHAR(9) PRIMARY KEY NOT NULL, Category CHAR(20) )... CREATE TABLE Students ( Name CHAR(30) SSN CHAR(9) PRIMARY KEY NOT NULL, Category CHAR(20) )... INSERT INTO Students VALUES(‘Charles’, ‘ ’, ‘undergraduate’).. INSERT INTO Students VALUES(‘Charles’, ‘ ’, ‘undergraduate’)..

How the Programmer Sees the DBMS Tables: Still implemented as files, but behind the scenes can be quite complex Students:Takes: Courses: “data independence” = separate logical view from physical implementation

Transactions Enroll “Mary Johnson” in “CSE444”: BEGIN TRANSACTION; INSERT INTO Takes SELECT Students.SSN, Courses.CID FROM Students, Courses WHERE Students.name = ‘Mary Johnson’ and Courses.name = ‘CSE444’ -- More updates here.... IF everything-went-OK THEN COMMIT; ELSE ROLLBACK BEGIN TRANSACTION; INSERT INTO Takes SELECT Students.SSN, Courses.CID FROM Students, Courses WHERE Students.name = ‘Mary Johnson’ and Courses.name = ‘CSE444’ -- More updates here.... IF everything-went-OK THEN COMMIT; ELSE ROLLBACK If system crashes, the transaction is still either committed or aborted

Transactions A transaction = sequence of statements that either all succeed, or all fail Transactions have the ACID properties: A = atomicity C = consistency I = isolation D = durability

Queries Find all courses that “Mary” takes What happens behind the scene ? –Query processor figures out how to answer the query efficiently. SELECT C.name FROM Students S, Takes T, Courses C WHERE S.name=“Mary” and S.ssn = T.ssn and T.cid = C.cid

Queries, behind the scene Imperative query execution plan: SELECT C.name FROM Students S, Takes T, Courses C WHERE S.name=“Mary” and S.ssn = T.ssn and T.cid = C.cid SELECT C.name FROM Students S, Takes T, Courses C WHERE S.name=“Mary” and S.ssn = T.ssn and T.cid = C.cid Declarative SQL query Students Takes sid=sid sname name=“Mary” cid=cid Courses The optimizer chooses the best execution plan for a query

Database Systems The big commercial database vendors: –Oracle –IBM (with DB2) –Microsoft (SQL Server) –Sybase Some free database systems (Unix) : –Postgres –MySQL –Predator In CSE544 we use SQL Server and Postgres.

New Trends in Databases Object-relational databases Main memory database systems XML XML XML ! –Relational databases with XML support –Middleware between XML and relational databases –Large-scale XML message systems Peer data management Stream data management Model management Security in data exchange Queries with uncertain matches

Database Industry Relational databases are a great success of theoretical ideas. Main players: Oracle, IBM, MS, Sybase Industry trends: –warehousing and decision support –data integration –XML, XML, XML.

What is the Field of Databases ? To a theoretical researcher (PODS/ICDT/LICS) –Focus on the query languages –Query language = logic = complexity classes To an applied researcher (SIGMOD/VLDB/ICDE) –Query optimization –Query processing (yet-another join algorithm) –Transaction processing, recovery (but most stuff is already done) –Novel applications: data mining, high-dimensional search To a systems programmer at Oracle: –Millions lines of code To an application builder: –E/R, SQL, ODBC/JDBC

Database Research What is cool today: XML: –Theory: trees + logic + automata = ? –Implementation on top of a RDBMS –Native implementation, indexing Processing data streams Model management Security/privacy in global data sharing Queries with uncertainties

Course Outline Part 1: Query languages, conceptual design –What you need if you need a job Part 2: Database theory –What you need to know if you don’t need a job Part 3: Systems –What you need to know if you are hired by one of the four database companies

Homework: 25% HW1: Get familiar with the technology: Design a small website powered by a db Process/query/manipulate XML data Will be handed out on Wednesday HW2: Pure theory

Project: 30% General theme: apply database principles to a new problem Suggested topics will be on the Website in about a week. Groups of 2-3 Groups assembled: Wednesday, 4/7 – Nilesh the group name, and members Proposals: Wednesday, 4/14 Touch base with me: every two weeks. Start Early.

Paper Reviews: 20% There will be reading assignments –More in the second half of the quarter You have to write the reviews before the day of class

Final: 25% June 10, 8:30-10:30, same room Will be challenging (and fun !)