5. SQL queries
A SQL query corresponds to a series of operations on the database. The query engine receives a request from the application. This query is declarative, i.e. it doesn't say what operations to perform, or in what order. It is first transformed into an imperative program, which is then executed to calculate the result of the query. The program corresponding to the query is called an execution plan. Several steps are required to obtain an execution plan.
First, the syntax of the SQL query is checked. The query must conform to the grammar of the SQL language. The relationship names in the FROM clause must correspond to a database relationship. Attribute names in other clauses (SELECT, WHERE, ORDER BY and GROUP BY) must correspond unambiguously to an attribute in a relationship. Type matching is checked for each predicate, e.g. price < 9.5 is not correct if the price...
Exclusive to subscribers. 97% yet to be discovered!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!
The Ultimate Scientific and Technical Reference
This article is included in
Software technologies and System architectures
This offer includes:
Knowledge Base
Updated and enriched with articles validated by our scientific committees
Services
A set of exclusive tools to complement the resources
Practical Path
Operational and didactic, to guarantee the acquisition of transversal skills
Doc & Quiz
Interactive articles with quizzes, for constructive reading
SQL queries
Bibliography
References
Standardization
- Technologies de l'information. Langage de base de données SQL - NF ISO/CEI 9075 - 9-94
Software
(non-exhaustive list)
UDB, DB2, IBM http://www.ibm.com/db2
SQL Server 2005, Microsoft http://www.microsoft.com/france/sql/sql2005/
Organizations
Transaction Processing Performance Council (TPC) http://www.tpc.org/
World Wide Web Consortium (W3C) http://www.w3.org/
Exclusive to subscribers. 97% yet to be discovered!
You do not have access to this resource.
Click here to request your free trial access!
Already subscribed? Log in!
The Ultimate Scientific and Technical Reference