SQL and Relational Theory: How to Write Accurate SQL Code"O'Reilly Media, Inc.", 06.11.2015 - 582 Seiten 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 that theory into practice. In this book, Chris Date explains relational theory in depth, and demonstrates through numerous examples and exercises how you can apply it to your use of SQL. This third edition has been revised, extended, and improved throughout. Topics whose treatment has been expanded include data types and domains, table comparisons, image relations, aggregate operators and summarization, view updating, and subqueries. A special feature of this edition is a new appendix on NoSQL and relational theory.
Database theory and practice have evolved considerably since Codd first defined the relational model, back in 1969. This book draws on decades of experience to present the most up to date treatment of the material available anywhere. Anyone with a modest to advanced background in SQL can benefit from the insights it contains. The book is product independent. |
Inhalt
Chapter 1 Setting the Scene | 1 |
Chapter 2 Types and Domains | 41 |
Chapter 3 Tuples and Relations Rows and Tables | 81 |
Chapter 4 No Duplicates No Nulls | 111 |
Chapter 5 Base Relvars Base Tables | 141 |
The Original Operators | 173 |
Additional Operators | 217 |
Chapter 8 SQL and Constraints | 281 |
Chapter 12 Miscellaneous SQL Topics | 443 |
Appendix A The Relational Model | 465 |
Appendix B SQL Departures from the Relational Model | 489 |
Appendix C A Relational Approach to Missing Information | 493 |
Appendix D A Tutorial D Grammar | 511 |
Appendix E Summary of Recommendations | 515 |
Appendix F NoSQL and Relational Theory | 521 |
Appendix G Suggestions for Further Reading | 533 |
Chapter 9 SQL and Views | 323 |
Chapter 10 SQL and Logic | 363 |
Chapter 11 Using Logic to Formulate SQL Expressions | 411 |