- Correlated and non-correlated.
Non-correlated
Correlated
The inner query doesn't depend on the outer query.
Inner query depends on the outer query.
Can run as a standalone query.
Can't run as a standalone query.
Executed only once.
Executed once for each row selected in the outer query.
Executed before the outer query.
Executed after the outer query.
Can't be used instead of JOIN on the outer query.
Can be used instead of JOIN on the outer query, but will be slower than a JOIN.
- SELECT, WHERE, FROM, INSERT, UPDATE, and DELETE clauses.
- SELECT and WHERE clauses.
- A container for a single SQL statement that will allow you to query a temporary result set.
- Recursive and non-recursive.
- Locking is what happens when a query runs against a database.
- With an index hint.
- READ UNCOMMITTED, READ COMMITTED, REPEATABLE READ...
United States
Great Britain
India
Germany
France
Canada
Russia
Spain
Brazil
Australia
Singapore
Hungary
Ukraine
Luxembourg
Estonia
Lithuania
South Korea
Turkey
Switzerland
Colombia
Taiwan
Chile
Norway
Ecuador
Indonesia
New Zealand
Cyprus
Denmark
Finland
Poland
Malta
Czechia
Austria
Sweden
Italy
Egypt
Belgium
Portugal
Slovenia
Ireland
Romania
Greece
Argentina
Netherlands
Bulgaria
Latvia
South Africa
Malaysia
Japan
Slovakia
Philippines
Mexico
Thailand