
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
A review of various topics in database systems, including the relational model and algebra, entity-relationship design, sql, null and three-value logic, bag versus set semantics, sfw queries, modifications, constraints, triggers, views, indexes, storage hierarchy, disk geometry, data layout, access paths, primary versus secondary indexes, tree-based indexes, query processing, optimization, and transaction processing. The document also includes announcements about homework grades, upcoming assignments, and the final exam.
Typology: Slides
1 / 1
This page cannot be seen from the preview
Don't miss anything!

2
Will be graded this weekend Sample solution will be available at your demo
Comprehensive (everything up to today’s lecture, with emphasis on the second half of the course, and materials exercised in homework assignments) Open book, open notes Same format as sample final exam
3
Relational model/algebra → physical data independence Entity-relationship design Design theory (FD’s, MVD’s, 3NF, BCNF, 4NF) → help eliminate redundancy SQL NULL and three-value logic → nifty feature, big mess Bag versus set semantics SFW (or SPJ) queries, subqueries, grouping and aggregation Modifications Constraints → the more you know the better you can do Triggers (ECA) → “active” data Views → logical data independence Indexes → reintroduce redundancy to improve performance Transactions and isolation levels
4
XPath: (branching) path expressions (with conditions) XQuery: FLWR, subqueries in return (restructuring), quantified expressions, aggregation, ordering XSLT: structural recursion with templates
Tables vs. hierarchies (or graphs in general) Storing XML as relations
5
Record layout (handling variable-length fields, NULL’s) Block layout (NSM, PAX) → inter-/intra-record locality
Primary versus secondary indexes Tree-based indexes: ISAM, B+^ -tree Text indexes: inverted lists, signature files, tries → Again, reintroduce redundancy to improve performance → Fundamental trade-off: query versus update cost
6
Scan-based algorithms Sort- and hash-based algorithms (and their duality) Index-based algorithms Pipelined execution with iterators
Heuristics: push selections down; smaller joins first → Reduce the size of intermediate results Cost-based
7