Article | REF: H3702 V1

Optimization of databases

Authors: Anne DOUCET, Hubert NAACKE

Publication date: August 10, 2007

You do not have access to this resource.
Click here to request your free trial access!

Already subscribed? Log in!


Français

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...

You do not have access to this resource.

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

A Comprehensive Knowledge Base, with over 1,200 authors and 100 scientific advisors
+ More than 10,000 articles and 1,000 how-to sheets, over 800 new or updated articles every year
From design to prototyping, right through to industrialization, the reference for securing the development of your industrial projects

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

Subscribe now!

Ongoing reading
SQL queries