Version 0.11
The chapter suffers from “XML fever”: the urge to do all things in XML. Unfortunately, XML and relational databases are very different: one is based on tree-structured data, the other on table-structured data; and it’s just confusing to cover both in the same chapter, even more so to pretend that XML files are databases.
Everybody knows, I hope, that if you buy a book on Amazon.com, or search on google.com, you’re interacting with a database, not a spreadsheet, on the other end of the connection. Why?
Snyder claims the database advantage over spreadsheets is “metadata.” But what is metadata? Trying to explain it using XML tags just confuses the issue. On p. 472 it seems that metadata is the table schema, which gives the name, data type, and a description of each column in the table. (Did tags do that? No.)
But, is even the table schema what gives the database its advantage? In a way, yes, because having the table strictly defined allows us to apply the relational model (the operations on tables), and yet there’s more to it than that. Here are the significant advantages of an industrial-strength database management system (DBMS) (see Silberschatz, Korth, and Sudarshan, Database System Concepts, chapter 1):
Does a desk-top database system, like Microsoft Office Access or OpenOffice/LibreOffice Calc, provide all of these features? Of course not. But it gives us 1–3, which lets us make a start on understanding database concepts. It also provides some user-friendly features which may not be present for multi-user database systems: graphical tools for creating tables, designing queries, and reports.
Operations on tables are applied to one or more tables and produce a table as the result, just like operations on numbers (+, -, etc.) are applied to one or more numbers and produce a number as the result.
select condition from tableproject col, … from tableThere are other operations, but these are the principal ones.
These are implemented in different computer languages for querying databases, including SQL and QBE.