90 likes | 272 Views
Alex Wood. Relational Databases. Why Relational Databases?. Originally, Databases Were Stored as “Flat Files” Flat Files Are Very Poor at Handling Queries Breaking Data into Relational Models: Increases Flexibility Improves Query Performance
E N D
Alex Wood Relational Databases
Why Relational Databases? • Originally, Databases Were Stored as “Flat Files” • Flat Files Are Very Poor at Handling Queries • Breaking Data into Relational Models: • Increases Flexibility • Improves Query Performance • Uses Less Space (Avoiding Excessive “NULL” Fields)
Flat File DBs are OK for Storage of Data Unlikely to Be Significantly Modified Adding New Columns is Difficult How Do You Model a List of an Author's Books in a Flat DB? Flat Files Are Evil Number, Name, Position, Age, College|27, Jordan Babineaux, SS, 27, Southern Arkansas|83, Deion Branch, WR, 30, Louisville|79, Red Bryant, DT, 25, Texas A&M|81, Nate Burleson, WR, 28, Nevada|11, Deon Butler, WR, 23, Penn State|89, John Carlson, TE, 25, Notre Dame|59, Aaron Curry, LB, 23, Wake Forest
A Few Tables How do we model relationships?
Relation Tables • Using only shared keys, facilitates easy linking of tables in queries. • Allows for modular data storage. • Can add attributes to further describe relation.
Deriving Interesting Information • How many students from a given school does a company hire? • What percent of employees come from that school? • What is the average commute distance of a company's employees?
Our Project • The CTPP Project involves storing game state and game results for an educational video game. • We are able to leverage Relational Databases to efficiently store game data, and build queries to obtain interesting information for post-game analysis. • Dealing with changing requirements for stored data is a manageable obstacle with this implementation.