



Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
An introduction to database systems, focusing on relational database management systems (rdbms). The goals and roadmap of the course, explaining the concept of a database system and its importance. It also discusses query processing and the history of dbms, from early efforts like codasyl to the relational revolution. The document also includes information about modern dbms features, major dbms providers, and people working with databases.
Typology: Slides
1 / 5
This page cannot be seen from the preview
Don't miss anything!




3
Relational algebra, database design, SQL, application programming
Data model and query languages, application programming, interplay between XML and relational databases
Storage, indexing, query processing and optimization, concurrency control and recovery
Data warehousing and mining, stream data processing, etc.
4
5
Each account belongs to a branch, has a number, an owner, a balance, … Each branch has a location, a manager, … Persistency: Homer will be pretty upset if his balance disappears after a power outage Query: What’s the balance in Homer Simpson’s account? Modification: Homer withdraws $
6
1001#Springfield#Mr. Morgan ... ... 00987-00654#Ned Flanders#2500. 00123-00456#Homer Simpson#400. 00142-00857#Montgomery Burns#1000000000. ... ...
1001#Springfield#Mr. Morgan ... ... 00987-00654#Ned Flanders#2500. 00123-00456#Homer Simpson#400. 00142-00857#Montgomery Burns#1000000000. ... ...
)Cluster accounts by owner’s initial: those owned by “A...” go into file A; those owned by “B...” go into file B; etc. → decide which file to search using the initial )Keep accounts sorted by owner name → binary search )Hash accounts using owner name → compute file offset directly )Index accounts by owner name: index entries have the form h owner_name , file_offset i → search index to get file offset )And the list goes on…
9
10
(Pretty drawing stolen from Hans-J. Schek’s VLDB 2000 slides)
11
(Pretty drawing stolen from Hans-J. Schek’s VLDB 2000 slides)
12
(Pretty drawing stolen from Hans-J. Schek’s VLDB 2000 slides)
get account balance from database; if balance > amount of withdrawal then balance = balance - amount of withdrawal; dispense cash; store new balance into database;
read balance; $
if balance > amount then balance = balance - amount; $ write balance; $
read balance; $ if balance > amount then balance = balance - amount; $ write balance; $
21
read balance;
if balance > amount then balance = balance - amount; write balance;
read balance;
if balance > amount then balance = balance - amount; write balance;
$
$ $
$
$ $
22
(fun reading: http://openacs.org/philosophy/why-not-mysql.html)
23
decrement the balance of account X by $100; increment the balance of account Y by $100;
24
Disk(s)
Applications
27
28
Database Systems: The Complete Book , by H. Garcia-Molina, J. D. Ullman, and J. Widom Get the value-pack edition with free access to Gradiance when it comes out (check Web site for updates)
http://www.cs.duke.edu/courses/fall04/cps116/ Course information; tentative syllabus and reference sections in GMUW; lecture slides, assignments, programming notes
Preferred news server: news.cs.duke.edu (news.duke.edu also works but with a lag)
29
Include written and programming problems as well as online exercises on Gradiance
Details to be given in the third week of class
Sign-up sheet to be given in the third week of class
Open book, open notes Final is comprehensive, but emphasizes the second half of the course