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 clauses—ON, WHERE, and HAVING—for 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:

NOT A PROFESSIONAL MEMBER? YOU CHOOSE:

Professional Membership

Monthly

Annual

VIP Membership

Monthly

Annual

Add a Comment

When should a filter be applied. In the ON or FROM? Can you have different result sets? How is the query execution plan changed?

JAMES11/18/2004 3:38:44 PM


Adds clarity to a common question

WILLIAM11/9/2004 1:23:09 PM


Where good explanation with a clear and simple example and codes.
Tnk you.

Anand9/27/2004 11:00:16 PM


just the technique for validating bridge tables (M:M)

Rostand9/27/2004 9:31:11 PM


Good information for beginners

amitm799/23/2004 6:04:14 AM


You must log on before posting a comment.

Are you a new visitor? Register Here
GOOGLE LINKS
SPONSORED LINKS
FEATURED LINKS