Optional quantifiers in relational and object-oriented views of database systems
Abstract
A system, method, and program enables database management systems for relational and object-oriented databases to recognize a quantifier in a query as being designated as optional. An optional quantifier will participate in a query depending upon certain conditions. If the columns (or objects) projected out in the view that are dependent upon the quantifier are not used by the query, the quantifier is dropped from the definition of the view. The query is processed using only the relations in the view not associated with the optional quantifier. The results returned are as if a left outer join operation with duplicate elimination had been performed, although the actual processing of the query was independent of, i.e., did not involve, a left outer join operation. If the columns (or objects) projected out in the view that are dependent upon the quantifier are used by the query, the optional quantifier remains in the definition of the view and the query is processed using a join operation.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 8 · Forward citations: 156.
Claims (2 — 1 Independent, 1 Dependent)
- Claim 1Independent Claim
A method, in a database management system, for processing a query, said method comprising: receiving said query over a view having a first relation and a second relation, said view having a quantifier designated as optional wherein said quantifier refers to said second relation, said query selecting elements only from said first relation; processing the query independently of a left outer join operation; and returning a result set having a number of tuples dependent upon the number of elements in said first relation; whereby a semantic of the query is equivalent to a left outer join with
- Claim 2Depends on #1
The method of claim 1 further comprising: receiving a second query over the view having the first relation and the second relation, said view having the quantifier designated as
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (15 of 156 total)
References Cited — Backward Prior Art (8)
Non-Patent Literature (5)
- "A data Model and Query Language for EXODUS," Proc. ACM-SIGMOD International Conference on Management of Data, Carey, Mike; DeWitt, David; Vandenburg, Scott; Chicago, Jun. 1988.
- "A model of Queries for Object-Oriented Databases," Kim, Won. Proc. 15th International Conference on Very Large Data Bases, Amsterdam, Aug. 1989.
- "A Query Language for the O2 Object-Oriented Database System," Bancilhon, Francois; Cluet S.; Delobel, C.; Proc. 2nd International Workshop on Database Programming Languages, Hull, Richard; Morrison, Ron; Stemple, David, editors; Gleneden Beach, Jun. 1989, Morgan-Kaufmann Publishers, Inc.
- "An Efficient hybrid Join Algorithm: A DB2 Prototype", Josephine Cheng, Donald Haderle, Richard Hedges, Balakrishna R. Iyer, Theodore Messinger, C. Mohan, Yun Wang, Database Technology Institute, IBM # 91A000868, Dec. 17, 1990.
- "An Efficient Hybrid Join Algorithm: Design, Prototype, Modelling and Measurement", Josephine, Cheng, Donald Haderle, Richard Hedges, Balakrishna R. Iyer, Theodore Messinger, C. Mohan, Yun Wang, Database Technology Institute, IBM # 90A003064, Feb. 15, 1990.