1 Introduction to Database Systems CSE 444 Lecture #1 September 26, 2007.

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

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.
Mani-CS34311 CS3431 – Database Systems I Logistics Instructor: Murali Mani
1 Introduction to Information Systems SSC, Semester 6 Lecture 01.
Murali Mani CS3431 – Database Systems I Introduction.
1 CENG 302 Introduction to Database Management Systems Nihan Kesim Çiçekli URL:
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.
Rundensteiner-CS34311 CS3431 – Database Systems I Logistics Instructor: Elke A. Rundensteiner
Introduction to Database Systems
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.
SQL, Data Storage Technologies, and Web-Data Integration Week 1.
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.
CS462: Introduction to Database Systems. ©Silberschatz, Korth and Sudarshan1.2Database System Concepts Course Information Instructor  Kyoung-Don (KD)
CSC2012 Database Technology & CSC2513 Database Systems.
Course Introduction Introduction to Databases Instructor: Joe Bockhorst University of Wisconsin - Milwaukee.
Database and Database Users. Outline Database Introduction An Example Characteristics of the Database Actors on the Scene Advantages of using the DBMS.
1 CS 430 Database Theory Winter 2005 Lecture 1: Introduction.
CpSc 462/662: Database Management Systems (DBMS) (TEXNH Approach) Introduction James Wang.
CS461: Principles and Internals of Database Systems Instructor: Ying Cai Department of Computer Science Iowa State University Office:
Introduction to Database Management Systems. Information Instructor: Csilla Farkas Office: Swearingen 3A43 Office Hours: Monday, Wednesday 4:15 pm – 5:30.
CSE544 Introduction Monday, March 29, Staff Instructor: Dan Suciu –CSE 662, –Office hours: Tuesday, 1-2pm. TA: Nilesh Dalvi.
INFS614, Dr. Brodsky, GMU1 Database Management Systems INFS 614 Instructor: Professor Alex Brodsky
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.
1 CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
Rundensteiner-CS34311 CS3431 – Database Systems I Introduction Instructor: Elke A. Rundensteiner
CS 541 Lecture Slides Sunil Prabhakar CS541 Database Systems.
CSC 411/511: DBMS Design CSC411_L0_OutlineDr. Nan Wang 1 Course Outline.
Database Systems Lecture 1. In this Lecture Course Information Databases and Database Systems Some History The Relational Model.
1 Database Systems ( 資料庫系統 ) Practicum in Database Systems ( 資料庫系統實驗 ) 9/20 & 9/21, 2006 Lecture #1.
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
Rundensteiner-CS34311 CS3431 – Database Systems I Logistics Instructor: Elke A. Rundensteiner
Database Management Systems.  Instructor: Yrd. Doç. Dr. Cengiz Örencik   Course material.
CSE3330/5330 DATABASE SYSTEMS AND FILE STRUCTURES (DB I) CSE3330/5330 DB I, Summer2012 Department of Computer Science and Engineering, University of Texas.
CS3431: C-Term CS3431 – Database Systems I Introduction Instructor: Mohamed Eltabakh
Copyright © 2004 Pearson Education, Inc. Chapter 1 Introduction and Conceptual Modeling.
Introduction to CSCI 242 Compiled by S. Zhang 1. Syllabus Syllabus has the most updated information! –Use the information on the syllabus for the grading.
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 Database Systems CSE 444 Lecture #1 September,
CS445 Pacific University 1 11/16/2016 CS 445 Introduction to Database Systems TTH 1:00 – 2:15 Chadd Williams Office HoursM 1:00-2:00 Tue 11-noon Thur 3-4.
Database Systems Lecture #1.
Database Systems Lecture #1.
Introduction to Database Systems CSE 444
Database What is a database ? Give examples of databases.
Database Systems Lecture #1.
Introduction to Database Systems
Introduction to Database Systems CSE 444
Database Management Systems CSE594
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
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:

1 Introduction to Database Systems CSE 444 Lecture #1 September 26, 2007

2 Staff Instructor: Hal Perkins –CSE 548, Office hours: Mondays 3:40-4:30 and tbd, CSE ugrad labs. (Where would be best?) TAs: –Andrew Hemmaplardh, –Huei-hun Elizabeth Tseng, –Office hours tbd

3 Communications Web site: –Lectures will be available here (usually after class) –Homework will be posted here (HW1 is posted) –The project description will be here Discussion board –Will be linked from web site –Please watch, contribute Mailing list –Everyone automatically subscribed –Mainly for announcements from course staff, etc.

4 Textbook(s) Main textbook, available at the bookstore: Database Systems: The Complete Book, Hector Garcia-Molina, Jeffrey Ullman, Jennifer Widom –Most chapters are good. Some are not (functional dependecies). COME TO CLASS ! ASK QUESTIONS ! READ SLIDES !

5 Other Texts Available at the Engineering Library (not on reserve): Database Management Systems, Ramakrishnan XQuery from the Experts, Katz, Ed. Fundamentals of Database Systems, Elmasri, Navathe Foundations of Databases, Abiteboul, Hull, Vianu Data on the Web, Abiteboul, Buneman, Suciu

6 Outline of Today’s Lecture 1.Overview of DBMS 2.DBMS through an example 3.Course outline 4.Assignment 1, Homework 1

7 Database What is a database ? Give examples of databases

8 Database What is a database ? A collection of files storing related data Give examples of databases Accounts database; payroll database; UW’s students database; Amazon’s products database; airline reservation database

9 Database Management System What is a DBMS ? Give examples of DBMS

10 Database Management System What is a DBMS ? A big C/C++ program written by someone else that allows us to manage efficiently a large database and allows it to persist over long periods of time Give examples of DBMS DB2 (IBM), SQL Server (MS), Oracle, Sybase MySQL, Postgres, …

11 RDBMS Market Shares From 2006, Oracle: 47% market share, $7.2BN in sales IBM: 21% market share with $3.2BN in sales Microsoft: 17% market with $2.6BN in sales

12 An Example The Internet Movie Database Entities: Actors (800k), Movies (400k), Directors, … Relationships: who played where, who directed what, …

13 Tables Directors:Movie_Directors: Movies: idfNamelName 15901Francis FordCoppola... midTitleYear The Godfather idmid

14 What the Database Systems Does 1.Create/store large datasets 2.Search/query/update 3.Change the structure 4.Concurrent access to many user 5.Recover from crashes 6.Security

15 Possible Organizations Files Spreadsheets DBMS

16 1. Create/store Large Datasets Files Spreadsheets DBMS Yes, but… Not really… Yes

17 2. Search/Query/Update Files Spreadsheets DBMS Simple queries (grep); Updates are difficult Simple queries; Simple updates All Updates: generally OK

18 3. Change the Structure Add Address to each Actor Files Spreadsheets DBMS Very hard Yes

19 4. Concurrent Access Multiple users access/update the data concurrently What can go wrong ? How do we protect against that in OS ? This is insufficient in databases; why ? Lost updates; inconsistent reads,… locks A logical action consists of multiple updates

20 5. Recover from crashes Transfer $100 from account #4662 to #7199: X = Read(Account, #4662); X.amount = X.amount - 100; Write(Account, #4662, X); Y = Read(Account, #7199); Y.amount = Y.amount + 100; Write(Account, #7199, Y); X = Read(Account, #4662); X.amount = X.amount - 100; Write(Account, #4662, X); Y = Read(Account, #7199); Y.amount = Y.amount + 100; Write(Account, #7199, Y); CRASH ! What is the problem ?

21 6. Security Files Spreadsheets DBMS File-level access control Same [?] Table/attribute- level access control

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

23 Data Independence Directors:Movie_Directors: Movies: idfNamelName 15901Francis FordCoppola... midTitleYear The Godfather idmid Logical view Directors_file Directors_fname_index_file Moviews_title_index_file Movies_file Physical view

24 What the Database Systems Does 1.Create/store large datasets 2.Search/query/update 3.Change the structure 4.Concurrent access to many user 5.Recover from crashes 6.Security SQL DML SQL DDL Transactions ACID Grant, Revoke, Roles

25 Course Outline - TENTATIVE !! 1.9/26: SQL 2.10/1: SQL in C#; Database Design: E/R, NF 3.10/5: Views, Constraints, security 4.10/12: Database design 5.10/17: XML/XPath/XQuery 6.10/26: Transactions, concurrency 7.11/14: Database storage, indexes 8.11/26: Physical operators, optimization Calendar on web site – updated as we go

26 Grading (TENTATIVE) Homework 30% Project 25% Midterm 15% Final 25% Intangibles: 5% Late days: Up to 4 total per quarter, at most 2 on any particular assignment/project phase. Otherwise no late assignments accepted

27 Reading Assignment Reading assignment for Fri, Sept.28 –Introduction from SQL for Web Nerds, by Philip Greenspun, (link on the course web) This is a one-time assignment, no grading, BUT very instructive and lots of fun reading

28 Homework Homework 0: –Due this Friday! (Don’t panic – page with your name/picture/etc.) Homework 1: –SQL Queries –Due Friday, Oct. 5 –It is posted already! Homework 2: –Conceptual design: E/R diagrams, Normal Forms –Due Friday, Oct. 17 Homework 3: –XML/Xquery –Due Friday, Nov. 2 Homework 4: –Transactions: concurrency control and recovery –Due Friday, Nov. 16

29 The Project: Boutique Online Store Phase 0: –Partner details; due middle of next week Phase 1: –Design a Database Schema, Build Related Data Logic –Due Friday, Oct. 12 Phase 2: –Import data, Web Inventory Data Logic –Due Friday, Oct. 26 Phase 3: –Checkout Logic –Due Friday, Nov. 9 Phase 4: –Database Tuning –Due Friday, Nov. 30

30 Project SQL Server, C#, ASP.NET Supported Will provide starter code in C#, ASP.NET The import data is in SQL/XML on SQL Server Alternative technologies: MySQL, postgres, PHPs Not supported (you are on your own) Worry about the SQL/XML part…

31 Accessing SQL Server – Today! SQL Server Management Studio Server Type = Database Engine Server Name = IISQLSRV Authentication = SQL Server Authentication –Login = your UW netid (not your CSE , and just the netid without “u.washington.edu”) –Password = 2007#cse444 –Change your password on first login (must be “secure”) Details on the course web Then play with IMDB, start thinking about HW1