JOURNAL ARTICLE

Rewriting general conjunctive queries using views

Junhu WangMichael J. MaherRodney Topor

Year: 2002 Journal:   Australasian Database Conference Vol: 24 (2)Pages: 197-206

Abstract

The problem of rewriting queries using views has important applications in data integration, query optimization, and physical data independence maintenance. Previous researchers have proposed rewriting algorithms for queries and views that are Datalog programs or conjunctive queries with arithmetic comparisons such as x < y and y ≥ 10. We present a method for finding rewritings of general conjunctive queries, i.e, conjunctive queries with arbitrary built-in predicates, using views. Our method also has advantages over previous algorithms when there are no built-in predicates or when the built-in predicates are conjunctions of arithmetic comparisons. In particular, our method finds strictly more rewritings than the MiniCon [PL00] and the Shared-Variable-Bucket [Mit01] algorithms and tends to be more efficient when the built-in predicates of the query involve only distinguished variables. It finds all rewritings that can be found by the Bucket [LRO96] algorithm in most practical cases, and more efficiently. It finds maximum rewritings in several special cases.

Keywords:
Conjunctive query Datalog Rewriting Computer science Independence (probability theory) Database query Theoretical computer science Boolean conjunctive query Query optimization Variable (mathematics) Query language Sargable Programming language Mathematics Database Information retrieval Web search query Relational database Search engine

Metrics

11
Cited By
2.63
FWCI (Field Weighted Citation Impact)
16
Refs
0.92
Citation Normalized Percentile
Is in top 1%
Is in top 10%

Topics

Advanced Database Systems and Queries
Physical Sciences →  Computer Science →  Computer Networks and Communications
Data Management and Algorithms
Physical Sciences →  Computer Science →  Signal Processing
Semantic Web and Ontologies
Physical Sciences →  Computer Science →  Artificial Intelligence

Related Documents

BOOK-CHAPTER

Rewriting Unions of General Conjunctive Queries Using Views

Junhu WangMichael J. MaherRodney Topor

Lecture notes in computer science Year: 2002 Pages: 52-69
BOOK-CHAPTER

Rewriting Conjunctive Queries Determined by Views

Foto Afrati

Lecture notes in computer science Year: 2007 Pages: 78-89
BOOK-CHAPTER

A Top-Down Approach to Rewriting Conjunctive Queries Using Views

Nima MohajerinNematollaah Shiri

Lecture notes in computer science Year: 2008 Pages: 180-198
© 2026 ScienceGate Book Chapters — All rights reserved.