Lecture1 Intro To DBMS
Lecture1 Intro To DBMS
Lecture 1
Introduction to Database Management System
These slides are primarily based on the slides for (CS186 EECTheseS Berkley by Prof. Michael
Franklin, and Intro. to databases by J Widom {https://cs.stanford.edu/people/widom/}). They are being
used for academic purpose only.
Prof. Anil Kumar Singh
“Knowledge is of two kinds: we know a
subject ourselves, or we know where
we can find information upon it.”
• DBMS:
• A collection of programs that enables users to create and maintain a database
• a general purpose software system that facilitates the process of defining,
constructing, and manipulating databases for various applications
Database Systems Today
So…What Is a Database System?
Robert McCloskey
“Search” vs. Query
What if you wanted to
find out which actors
donated to John
Kerry’s presidential
campaign?
• “Search” can
return only
what’s been
previously
“stored”.
Q: Did it Work?
What’s going on here?
• Unstructured Data
– Text-based search is based mostly on statistical models of similarity.
• no real “understanding” of the data
– Google’s big step forward was to exploit some of the structure in web
documents.
– Still, web search places a large burden on people to do the last stage of
filtering and interpretation.
• Structure gives computers the ability to
manipulate and maintain the data.
Similarity
search by
“features”
Picture From Univ. of Konstanz
What about structured data?
•A data model is a collection of concepts for
describing data.
•A schema is a description of a particular
collection of data, using a given data model.
• Conceptual schema:
– Students(sid: string, name: string, age: integer, gpa:real)
– Courses(cid: string, cname:string, credits:integer)
– Enrolled(sid:string, cid:string, grade:string)
FOREIGN KEY sid REFERENCES Students
FOREIGN KEY cid REFERENCES Courses
• External Schema (View):
– Course_info(cid:string,enrollment:integer)
Create View Course_info AS
SELECT cid, Count (*) as enrollment
FROM Courses
GROUP BY cid
So, Don’t you need both?
Good Old Text Search
Database Query
Key concepts
▪ DBMS implementer
▪ Database designer
▪ Database administrator
= Is a File System a DBMS?
• Thought Experiment 1:
– You and your project partner are editing the same file.
– You both save it at the same time.
– Whose changes survive?
• representing information
– data modeling
• languages and systems for querying data
– complex queries & query semantics*
– over massive data sets
• concurrency control for data manipulation
– controlling concurrent access
– ensuring transactional semantics
• reliable data storage
– maintain data semantics even if you pull the plug
* semantics: the meaning or relationship of meanings of a sign or set of
signs
Syllabus
C. The topic is intellectually rich.