Академический Документы
Профессиональный Документы
Культура Документы
ORIE 480
IT framework
Disk
Transaction Management
• A Transaction is a logical unit of access to a DBMS
– It’s a unit, no such thing as half a
transaction!
– Concurrency and Recovery from System
Crashes
– Locks, Write-Ahead Logs and Checkpoints
•CONCEPTS:
•Table (and relation)
•Tuple (or record)
•Field, attribute (slot in a record; column in a table)
•Domain (set of permitted values for an attribute)
•Data types (integer, character, date, . . . )
•Data atomicity (one data item per field)
•Key, key field(s) (uniquely identify a record)
Parts Table
P# PNAME COLOR WEIGHT
P1 Nut Red 12
P2 Bolt Green 17
P3 Screw Blue 17
P4 Screw Red 14
P5 Cam Blue 12
P6 Cog Red 19
•Concepts:
•Ordering on the rows?
•Weight = 17. 17 what? Pounds? Ounces? Tons? Kilograms?
•Why more than one table?
Shipment Table
S# P# QTY
S1 P1 300
S1 P2 200
S1 P6 100
S2 P1 300
S2 P2 400
S3 P2 200
S4 P2 200
S4 P4 300
•Concepts:
•Two-field key: S#-P#
•Why more than one table?
•How do we answer queries that rely on data in
more than one table?
Representing the
Suppliers/Parts/Shipments
• Use Access
– let's see…
Our focus in 480: