Type Inheritance and Relational Theory: Subtypes, Supertypes, and Substitutability

Type Inheritance and Relational Theory: Subtypes, Supertypes, and Substitutability

作者: C. J. Date
出版社: O'Reilly
出版在: 2016-09-26
ISBN-13: 9781491959992
ISBN-10: 1491959991
裝訂格式: Paperback
總頁數: 572 頁





內容描述


Type inheritance is that phenomenon according to which we can say, for example, that every square is also a rectangle, and so properties that apply to rectangles in general apply to squares in particular. In other words, squares are a subtype of rectangles, and rectangles are a supertype of squares. Recognizing and acting upon such subtype / supertype relationships provides numerous benefits: Certainly it can help in data modeling, and it can also provide for code reuse in applications. For these reasons, many languages, including the standard database language SQL, have long supported such relationships. However, there doesn’t seem to be any consensus in the community at large on a formal, rigorous, and abstract model of inheritance. This book proposes such a model, one that enjoys several advantages over other approaches, not the least of which it is that it’s fully compatible with the well known relational model of data.Topics the model covers include:Both single and multiple inheritanceScalar, tuple, and relation inheritanceType lattices and union and intersection typesPolymorphism and substitutabilityCompile time and run time bindingAll of these topics are described in detail in the book, with numerous illustrative examples, exercises, and answers. The book also discusses several alternative approaches. In particular, it includes a detailed discussion and analysis of inheritance as supported in the SQL standard.




相關書籍

MySQL 從入門到項目實踐(超值版)

作者 聚慕課教育研發中心

2016-09-26

Graph Algorithms: Practical Examples in Apache Spark and Neo4j

作者 Amy Hodler Mark Needham

2016-09-26

Database Reliability Engineering: Designing and Operating Resilient Database Systems

作者 Laine Campbell Charity Majors

2016-09-26