14
Database Management Systems

Database Management Systems. Instructor: Yrd. Do. Dr. Cengiz rencik Course material

Embed Size (px)

DESCRIPTION

 Not required  You may use any database book  Database Management Systems – 3 rd Edition ◦ Ramakrishnan and Gehrke

Citation preview

Page 1: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Database Management Systems

Page 2: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Instructor: Yrd. Doç. Dr. Cengiz Örencik

E-mail: [email protected]

Course material http://myweb.sabanciuniv.edu/cengizo/cours

es◦ all the notes will be shared there

Course info

Page 3: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Not required You may use any database book

Database Management Systems – 3rd Edition◦ Ramakrishnan and Gehrke

Book

Page 4: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Midterm 40% Inclass quizzes (2) 10% Final 50%

Hws◦ Self study◦ Not to be graded

4

Grading

Page 5: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Managing data Introduction to Database design

◦ Entities, attributes, relationships, etc.◦ ER model

Relational Model◦ Representing data◦ Create, modify, query…

Relational Algebra vs. SQL Storage and Indexing Transaction Management

◦ Concurrency control◦ Crash recovery

5

Aims to learn

Page 6: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Database Management System (DBMS) provides….

… efficient, reliable, convenient, and safe multi-user storage of and access to massive amounts of persistent data.

Intro

Page 7: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Massive – terrabytes/day Persistent Safe – hard/software failure, power cut Multi-user Convenient Efficient Reliable

DBMS

Page 8: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

A Database Management System (DBMS) is a software package designed to store and manage databases

We will not consider: Database applications may be programmed via

“frameworks”◦ Environments that help to develop program◦ Ruby on rails, Django…

DBMS may run in conjunction with “middleware”◦ Web servers that interact with database

Data-intensive applications may not use DBMS at all◦ Store everything on files

DBMS

Page 9: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Data independence ◦ Application programs don’t need details of data representation and

storage Efficient access

◦ A variety of techniques Data integrity and security

◦ Enforce constraints, access control… Uniform data administration

◦ How different groups of users use it◦ Organized to minimize redundancy

Reduced application development time◦ DBMS support most common important functions

Concurrent access, recovery from crashes◦ Multiple users use it without conflict◦ Protect from effects of system failures

Why Use a DBMS?

Page 10: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Data described as a set of records

Example: Student information in a university

Students(sid: integer, name: string, mail: string, age: integer, gpa: real)

Relational Model

Sid Name Mail Age Gpa53666 Jone jone@cs 20 3.253680 Smith smith@cs 21 2.953442 Smith smith@mat

h19 3.85

53123 Alice alice@ee 21 3.5

Page 11: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

Relation student Each column attributes

Each row is a record that describes a student

Integrity constraints◦ Sid must be unique

Relational model

Page 12: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

What is the name of the student with sid 53680?

How many students are enrolled to DBMS course?

What fraction of students of DBMS course get a grade better than BB?

Queries

Page 13: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

DBMS implementer◦ Builds the system◦ Works for IBM or Oracle

Database designer◦ Interact users◦ Establishes the schema - relations◦ How to structure – how to store

Database application developer◦ Builds the programs that operate on the database◦ Use tools DBMS provides◦ Usually not computer professionals

Database administrator◦ loads the data, keep it running

Key People

Page 14: Database Management Systems.  Instructor: Yrd. Do. Dr. Cengiz rencik     Course material

DBMS used to maintain, query large datasets

Benefits include recovery from system crashes, concurrent access, quick application development, data integrity and security

DBAs hold responsible jobs and are well paid

Whether you know it or not, you’re using a database every hour

Summary