
























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
Intorduction to Database Systems
Typology: Lecture notes
1 / 32
This page cannot be seen from the preview
Don't miss anything!

























(^) at the “low end”: scramble to web space (a mess!) (^) at the “high end”: scientific applications
(^) Digital libraries, interactive video, Human Genome project, EOS project (^) ... need for DBMS exploding
(^) OS, languages, theory, AI, multimedia, logic
(^) A data model is a collection of high-level constructs for describing stored data that hides low-level storage details. (^) A schema is a description of a particular collection of data, based on a given data model. (^) The relational data model is the most widely used data model today. (^) Main concept: relation , basically a table with rows and columns. (^) Every relation has a schema , which describes the columns, or fields. (^) For example, Students(sid: string, name: string, login: string, age: integer, gpa: real).
The hierarchical model organizes data records as collections of trees
(^) Many views (external schema) , single conceptual (logical) schema and physical schema. (^) Views describe how users see the data. (^) Conceptual schema (also called logical schema) defines logical structure based on data model. (^) Physical schema describes the files and indexes used (i.e., the storage details). Conceptual & external sche are defined using DDL Data is modified/queried using DML Physical Schema Conceptual Schema View 1 View 2 View 3 External Schema Metadata stored in system catalogs
(^) Relations stored as unordered files. (^) The second column of Students is indexed by a B-tree.
(^) Students(sid: string, name: string, login: string, age: integer, gpa:real) (^) Courses(cid: string, cname:string, credits:integer) (^) Enrolled(sid:string, cid:string, grade:string)
(^) Course_info(cid:string,enrollment:integer)
(^) Achieved by revising view definition in accordance with new logical schema. Users don’t see the change.
(^) Logical structures (e.g., tables in RDB) are supported by different physical storage structures.
individual report group report individual group member of name group id submitted by submitted by period period hours hours date activity Entity-Relationship Diagram
individual_report groups group_report
AND activity = ‘implementation’;
void transfer(int acct1, int acct2, int amount) { exec sql begin declare section ; int acct1_balance; exec sql end declare section ; exec sql update accounts set balance = balance - :amount ; where account_number = :acct1; exec sql update accounts set balance = balance + :amount; where account_number = :acct2;