September 21, 2004 06:21 PM
Understanding Query Filters and Clauses
Filters take their turns
Rating:

(0)
SQL Server Magazine
InstantDoc ID #43681
T-SQL query can use any of three clausesON, WHERE, and HAVINGfor specifying logical expressions that SQL Server uses as filters. The three filters play different roles, but sometimes it can be difficult to know which clause you should specify a logical expression in. Most T-SQL programmers know when to specify a logical expression in the HAVING clause because SQL Server applies the HAVING clause after grouping the input data. But confusion around when to use the ON and WHERE clauses ...
...This article is for paid Professional Members only.
Already a Professional Member? Please log in now: