CSE 303 Lec 1 Introduction
CSE 303 Lec 1 Introduction
Lecture 01
2022
Introductory Lecture
• Email:
{ashikur, asmlatifulhoque}@cse DOT buet DOT ac DOT bd
Overview of DBMS
What is a database ?
FACEBOOK
definition
16
CSE 303: Ashikur Rahman
The world’s scientific knowledge
is accessible, but not readable.
Could we build a machine to
read for us?
Building database is the first step
towards machine readable data
CSE 303: Ashikur Rahman 17
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
• Entities:
Actors (800k), Movies (400k), Directors, …
• Relationships:
who played where, who directed what, …
CSE 303: Ashikur Rahman 26
Tables
Directors: Movie_Directors:
id fName lName id mid
15901 Francis Ford Coppola 15901 130128
... ...
Movies:
mid Title Year
130128 The Godfather 1972
...
– Students
– Courses Entities
– Professors
– Who takes what
Relationships
– Who teaches what
CSE 303: Ashikur Rahman 28
Modeling the CMS using DBMS
• Logical Schema
• Students(sid: string, name: string, gpa: float)
• Courses(cid: string, cname: string, credits: int)
• Enrolled(sid: string, cid: string, grade: string)
• ………………….
sid Name Gpa cid cname credits
101 Jalil 3.2 101 C 3
Relations 303 Dbase 3
123 Karim 3.8
• Spreadsheets
• DBMS
• DBMS Yes
• DBMS All
Very hard
• Files
• Spreadsheets Yes
• DBMS Yes
File-level
• Files access control
• DBMS Table/attribute-
level access control
connection
(ODBC, JDBC)
Database server
(someone else’s
Data files C program) Applications
39
CSE 303: Ashikur Rahman
Data Independence
Logical view
Directors: Movie_Directors:
id fName lName id mid
15901 Francis Ford Coppola 15901 130128
... ...
Movies:
mid Title Year
130128 The Godfather 1972
...
Directors_file Moviews_title_index_file
Directors_fname_index_file Movies_file
CSE 303: Ashikur Rahman Physical view
40
What the Database Systems Does
SQL DDL
1. Create/store large datasets SQL DML
2. Search/query/update
3. Change the structure SQL DDL
41
CSE 303: Ashikur Rahman
Course Outline (first half) -
TENTATIVE !!
1. Introduction (chapter 1)
2. Relational model (chapter 2)
3. SQL (chapter 6)
4. Constraints (chapter 7)
5. Design theory (chapter 3)
6. E-R diagram (chapter 4)
7. Relational Algebra (chapter 2)