CSE 132A. Database Systems Principles

Similar documents
Database Management System. Fundamental Database Concepts

Chapter 1: Introduction

Chapter 1: Introduction

Chapter 1: Introduction

Chapter 1: Introduction. Chapter 1: Introduction

Database Management Systems (CPTR 312)

UNIT I. Introduction

Chapter 1: Introduction

CAS CS 460/660 Introduction to Database Systems. Fall

CS425 Fall 2016 Boris Glavic Chapter 1: Introduction

D.Hemavathi & R.Venkatalakshmi, Assistant Professor, SRM University, Kattankulathur

Course Logistics & Chapter 1 Introduction

DATABASE MANAGEMENT SYSTEMS. UNIT I Introduction to Database Systems

Chapter 1: Introduction

Upon completion of this Unit, the students will be introduced to the following

DATABASE MANAGEMENT SYSTEM COURSE CONTENT

John Edgar 2

Database System Concepts

Database Technology Introduction. Heiko Paulheim

Chapter 1 Introduction

Chapter 1 Chapter-1

CSC 355 Database Systems

CSCI1270 Introduction to Database Systems

CMPT 354 Database Systems I. Spring 2012 Instructor: Hassan Khosravi

Database System Concepts and Architecture

Chapter 1 Database System Concepts and Architecture. Nguyen Thi Ai Thao

DATABASTEKNIK - 1DL116

Database Principle. Zhuo Wang Spring

B.H.GARDI COLLEGE OF MASTER OF COMPUTER APPLICATION. Ch. 1 :- Introduction Database Management System - 1

Introduction to Data Management. Lecture #2 (Big Picture, Cont.)

Introduction to Database Systems. Motivation. Werner Nutt

Introduction Database Concepts

Database Systems. Sven Helmer. Database Systems p. 1/567

Introduction. Example Databases

Fundamentals of Database Systems (INSY2061)

Databases and Database Management Systems

Introduction to DBMS

Introduction to Database Systems. Fundamental Concepts

Mahathma Gandhi University

1. Data Model, Categories, Schemas and Instances. Outline

DB Basic Concepts. Rab Nawaz Jadoon DCS. Assistant Professor. Department of Computer Science. COMSATS IIT, Abbottabad Pakistan

Unit I. By Prof.Sushila Aghav MIT

G64DBS Database Systems. G64DBS Module. Recommended Textbook. Assessment. Recommended Textbook. Recommended Textbook.

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

Introduction to Data Management. Lecture #1 (The Course Trailer )

ADVANCED DATABASES ; Spring 2015 Prof. Sang-goo Lee (11:00pm: Mon & Wed: Room ) Advanced DB Copyright by S.-g.

Copyright 2004 Pearson Education, Inc.

Database Systems Overview. Truong Tuan Anh CSE-HCMUT

Information Systems and Software Systems Engineering (12CFU)

Database Systems Management

Prof. David Yarowsky

پوهنتون کابل پوهنځی كمپيوترساینس

Introduction: Database Concepts Slides by: Ms. Shree Jaswal

Introduction to Data Management. Lecture #2 (Big Picture, Cont.) Instructor: Chen Li

Database Management Systems MIT Introduction By S. Sabraz Nawaz

; Spring 2008 Prof. Sang-goo Lee (14:30pm: Mon & Wed: Room ) ADVANCED DATABASES

Department of Information Technology B.E/B.Tech : CSE/IT Regulation: 2013 Sub. Code / Sub. Name : CS6302 Database Management Systems

Quick Facts about the course. CS 2550 / Spring 2006 Principles of Database Systems. Administrative. What is a Database Management System?

Conceptual Database Modeling

DATABASE DESIGN I - 1DL300

CSE 544 Principles of Database Management Systems

Course Introduction & Foundational Concepts

CISC 3140 (CIS 20.2) Design & Implementation of Software Application II

Basant Group of Institution

Introduction to CS 4604

CMPUT 391 Database Management Systems. Fall Semester 2006, Section A1, Dr. Jörg Sander. Introduction

Introduction to Data Management. Lecture #1 (Course Trailer ) Instructor: Chen Li

Fundamentals of Databases

Practical Database Design Methodology and Use of UML Diagrams Design & Analysis of Database Systems

Introduction: Databases and. Database Users

CS34800 Information Systems. Course Overview Prof. Walid Aref January 8, 2018

CS 564: DATABASE MANAGEMENT SYSTEMS. Spring 2018

What is Data? ANSI definition: Volatile vs. persistent data. Data. Our concern is primarily with persistent data

What is Data? Volatile vs. persistent data Our concern is primarily with persistent data

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe. Slide 1-1

DATABASE MANAGEMENT SYSTEM

9/8/2018. Prerequisites. Grading. People & Contact Information. Textbooks. Course Info. CS430/630 Database Management Systems Fall 2018

SYED AMMAL ENGINEERING COLLEGE

Chapter 1. Types of Databases and Database Applications. Basic Definitions. Introduction to Databases

Database Management System

Course: Database Management Systems. Lê Thị Bảo Thu

Data! CS 133: Databases. Goals for Today. So, what is a database? What is a database anyway? From the textbook:

Introduction to Data Management. Lecture #1 (Course Trailer )

Information Management (IM)

Database Management Systems. Chapter 1

Ministry of Higher Education and Scientific research

Data Base Concepts. Course Guide 2

DBMS Lesson Plan. Name of the faculty: Ms. Kavita. Discipline: CSE. Semester: IV (January-April 2018) Subject: DBMS (CSE 202-F)

Introduction to Data Management. Lecture #1 (Course Trailer )

Review for Exam 1 CS474 (Norton)

COMP3311 Database Systems

Specific Objectives Contents Teaching Hours 4 the basic concepts 1.1 Concepts of Relational Databases

Database System Concepts and Architecture

Introduction: Databases and Database Users. Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 1

Databases 1. Daniel POP

Databases: Why? Databases: What? Databases: How? DATABASE DESIGN I - 1DL300

Chapter 1. Introduction of Database (from ElMasri&Navathe and my editing)

DATABASE MANAGEMENT SYSTEM SHORT QUESTIONS. QUESTION 1: What is database?

Outline. Database Management Systems (DBMS) Database Management and Organization. IT420: Database Management and Organization

Introduction. Who wants to study databases?

Transcription:

CSE 132A Database Systems Principles Prof. Victor Vianu 1 Data Management An evolving, expanding field: Classical stand-alone databases (Oracle, DB2, SQL Server) Computer science is becoming data-centric: web knowledge harvesting, crowdsourcing, cloud computing, scientific databases, networks, data mining, streaming sensor monitoring, social networks, bioinformatics, geographic information systems, digital libraries, data-driven business processes, data analytics Classical database concepts and algorithms continue to provide the core technology this course 2 1

CSE132A: Database Systems Principles Core concepts and techniques in database systems Databases from the viewpoint of user and designer A lot of SQL, but also peeks under the hood: query processing, schema design, transactions and concurrency control Some basic theory: formal languages underlying SQL relational algebra and relational calculus Basic background for follow-up courses 132B: Database system applications (A. Deutsch) 135: Online analytics applications (Y. Papakonstantinou) 190: Beyond relational databases (A. Deutsch) 190: Database implementation (A. Kumar) i3 Resources Slides, recommended texts, podcast Practice problem sets with solutions (ungraded) Gradiance online practice homeworks and labs Posted practice problems Weekly discussion section TA/tutor daily office hours and instructor office hours Discussion board (Piazza) Everything will be posted on the class website (check often!) http://cseweb.ucsd.edu/classes/wi18/cse132a-a/ 4 2

Requirements Two Gradiance SQL Labs and two written homeworks (14%) Two programming assignments (SQL and JDBC) (33%) Midterm (25%) Final (25%) Class participation via clickers (3%) Academic Integrity Everyone taking the class is assumed familiar with the Integrity of Scholarship policy posted on the class Web site 5 What is a database? Persistent data Query and update language for accessing and modifying data Query optimization Transactions and concurrency control What kind of data? Emphasis: many instances of similarly structured data Examples: Airline reservations: database (large set of similar records) Computerized library: information retrieval Medication advisor: expert system 6 3

Top Level Goals of a Database System Provide users with a meaning-based view of data shield from irrelevant detail abstract view Support operations on data queries, updates Provide data control integrity, security concurrency, recovery 7 Levels of Abstraction Logical level: describes data stored in database in terms close to the application type customer = record customer_id : string; customer_name : string; customer_street : string; customer_city : integer; end; Physical level: describes how the data is stored. View level: customized, restructured information. Views can also hide information (such as an employee s salary) for security purposes. 8 4

Basic Architecture of a Database System Data Independence logical and physical levels are independent 9 Database System Tailored to specific application Database Management System Generalized DB system used in variety of application environments common approach to data organization data storage data access data control e.g. Ingres/Postgres, DB2, Oracle, SQL Server, MySQL, etc. 10 5

Data Models A collection of concepts and tools for describing the data relationships, semantics, constraints + A language for querying and modifying the data Relational model Entity-Relationship data model (mainly for database design, no query language) Object-based data models (Object-oriented and Object-relational) Semi-structured data model (XML) Other older models: Network model Hierarchical model 11 Schemas and Instances Similar to types and values of variables in programming languages Schema the logical structure of the database Example: The database consists of information about a set of customers and accounts and the relationship between them Analogous to type of a variable in a program Instance the actual content of the database at a particular point in time Analogous to the value of a variable 12 6

Example: Entity-Relationship Model Models an application as a collection of entities and relationships Entity: a thing or object in the enterprise that is distinguishable from other objects Described by a set of attributes Relationship: an association among several entities Represented diagrammatically by an entity-relationship diagram: 13 Example: Relational Model Schema 14 7

Example: Relational Model Instance 15 Data Definition Language (DDL) Specification language for defining the database schema Example in SQL: create table account ( account-number char(10), balance integer) DDL compiler generates a set of tables described in a data dictionary Data dictionary contains metadata (i.e., data about data) Database schema Integrity constraints Authorization information 16 8

Data Manipulation Language (DML) Language for accessing and modifying data DML also known as query/update language Two classes of languages Procedural user specifies what data is required and how to get that data Declarative (nonprocedural) user specifies what data is required without specifying how to get it SQL is the most widely used query language primarily declarative 17 Database Architecture Different architectures for different settings: Centralized Parallel (multi-processor) cloud computing/map-reduce Client-server Distributed 18 9

Centralized DBMS Site 1 Site 2 Site 5 Site 4 Site 3 19 Distributed DBMS Site 1 Site 2 Site 5 Site 4 Site 3 20 10

Client/Server DBMS SQL requests Answers Client Server 21 Map-reduce 22 11

This course: core database issues The relational model Commercial query languages: SQL (and some QBE) Formal query languages: relational algebra and calculus Query processing Schema design: normal forms and the ER model Concurrency control Other topics as time allows: indexing, object databases, XML 23 Databases at UCSD Prof. Alin Deutsch Prof. Arun Kumar Prof. Yannis Papakonstantinou Prof. Victor Vianu Database group Web site: http://db.ucsd.edu/ papers, seminars, bragging. Intersections with other CSE groups storage multimedia machine learning networks 24 12