SQL and Relational Theory: How to Write Accurate SQL Code
SQL is full of difficulties and traps for the unwary. You can avoid them if you understand relational theory, but only if you know how to put the theory into practice. In this insightful book, author C.J. Date explains relational theory in depth, and demonstrates through numerous examples and exercises how you can apply it directly to your use of SQL.
This second edition includes new material on recursive queries, “missing information” without nulls, new update operators, and topics such as aggregate operators, grouping and ungrouping, and view updating. If you have a modest-to-advanced background in SQL, you’ll learn how to deal with a host of common SQL dilemmas.
Database theory and practice have evolved since the relational model was developed more than 40 years ago. SQL and Relational Theory draws on decades of research to present the most up-to-date treatment of SQL available.
C.J. Date has a stature that is unique within the database industry. A prolific writer well known for the bestselling textbook An Introduction to Database Systems (Addison-Wesley), he has an exceptionally clear style when writing about complex principles and theory.
What people are saying - Write a review
LibraryThing ReviewUser Review - tlockney - LibraryThing
Reading this on my phone as an epub, so it's a bit slow going. I have the older edition of this in print, but it's changed enough that I'm trying to stick to the newer material. Read full review
Setting the Scene
Types and Domains
Tuples and Relations Rows and Tables
No Duplicates No Nulls
Base Relvars Base Tables
SQL and Relational Algebra I The Original Operators
SQL and Relational Algebra II Additional Operators
SQL and Constraints
Miscellaneous SQL Topics
The Relational Model
SQL Departures from the Relational Model
A Relational Approach to Missing Information
A Tutorial D Grammar
Summary of Recommendations
Answers to Exercises
Suggestions for Further Reading