Definition
Given a query on a database schema and a set of views over the same schema, the problem of query rewriting is to find a way to answer the query using only the answers to the views. Rewriting algorithms aim at finding such rewritings efficiently, dealing with possible limited query-answering capabilities on the views, and producing rewritings that are efficient to execute.
Historical Background
Query rewriting is one of the oldest problems in data management. Earlier studies focused on improving performance of query evaluation [9], since using materialized views can save the execution cost of a query. In 1995, Levy et al. [10] formally studied the problem and developed complexity results. The problem became increasingly more important due to new applications such as data integration, in which views are used widely to describe the semantics of the data at different sources and queries posed on the global schema. Many algorithms have been developed, including the bucket...
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsRecommended Reading
Afrati FN, Li C, Mitra P. Answering Queries using views with arithmetic comparisons. In: Proceedings of the 21st ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems; 2002. p. 209–20.
Afrati F, Li C, Ullman JD. Generating efficient plans using views. In: Proceedings of the ACM SIGMOD International Conference on Management of Data; 2001. p. 319–30.
Calvanese D, Giacomo GD, Lenzerini M, Vardi MY. View-based query processing: on the relationship between rewriting, answering and losslessness. In: Proceedings of the 10th International Conference on Database Theory; 2005. p. 321–36.
Chandra AK, Merlin PM. Optimal implementation of conjunctive queries in relational data bases. In: Proceedings of the 9th Annual ACM Symposium on Theory of Computing; 1977. p. 77–90.
Chaudhuri S, Krishnamurthy R, Potamianos S, Shim K. Optimizing queries with materialized views. In: Proceedings of the 11th International Conference on Data Engineering; 1995. p. 190–200.
Chirkova R, Li C. Materializing views with minimal size to answer queries. In: Proceedings of the 22nd ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems; 2003. p. 38–48.
Duschka OM, Genesereth MR. Answering recursive queries using views. In: Proceedings of the ACM SIGACT-SIGOPS 16th Symposium on the Principles of Distributed Computing; 1997. p. 109–16.
Halevy AY. Answering queries using views: a survey. VLDB J. 2001;10(4):270–94.
Larson PÅ, Yang HZ. Computing queries from derived relations. In: Proceedings of the 11th International Conference on Very Large Data Bases; 1985. p. 259–69.
Levy A, Mendelzon AO, Sagiv Y, Srivastava D. Answering queries using views. In: Proceedings of the 14th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems; 1995. p. 95–104.
Levy A, Rajaraman A, Ordille JJ. Querying heterogeneous information sources using source descriptions. In: Proceedings of the 22th International Conference on Very Large Data Bases; 1996. p. 251–62.
Li C. Query processing and optimization in information-integration systems. Ph.D. Thesis, computer science department. Stanford University. 2001.
Mitra P. An algorithm for answering queries efficiently using views. In: Proceedings of the 12th Australasian Database Conference; 2001. p. 99–106.
Pottinger R, Levy A. A scalable algorithm for answering queries using views. In: Proceedings of the 26th International Conference on Very Large Data Bases; 2000.
Qian X. Query folding. In: Proceedings of the 12th International Conference on Data Engineering; 1996.p. 48–55.
Rajaraman A, Sagiv Y, Ullman JD. Answering queries using templates with binding patterns. In: Proceedings of the 14th ACM SIGACT-SIGMOD-SIGART Symposium on Principles of Database Systems; 1995. p. 105–12.
Theodoratos D, Sellis T. Data warehouse configuration. In: Proceedings of the 23th International Conference on Very Large Data Bases; 1997. p. 126–35.
Ullman JD. Information integration using logical views. In: Proceedings of the 6th International Conference on Database Theory; 1997. p. 19–40.
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Science+Business Media, LLC, part of Springer Nature
About this entry
Cite this entry
Li, C. (2018). Rewriting Queries Using Views. In: Liu, L., Özsu, M.T. (eds) Encyclopedia of Database Systems. Springer, New York, NY. https://doi.org/10.1007/978-1-4614-8265-9_1071
Download citation
DOI: https://doi.org/10.1007/978-1-4614-8265-9_1071
Published:
Publisher Name: Springer, New York, NY
Print ISBN: 978-1-4614-8266-6
Online ISBN: 978-1-4614-8265-9
eBook Packages: Computer ScienceReference Module Computer Science and Engineering