Received: from web20609.mail.yahoo.com (web20609.mail.yahoo.com [216.136.226.167]) by postgresql.org (8.11.3/8.11.4) with SMTP id g0M3x6l24393 for ; Mon, 21 Jan 2002 22:59:06 -0500 (EST) (envelope-from trajakumar@yahoo.com) Message-ID: <20020122035909.84067.qmail@web20609.mail.yahoo.com> Received: from [203.197.179.124] by web20609.mail.yahoo.com via HTTP; Mon, 21 Jan 2002 19:59:09 PST Date: Mon, 21 Jan 2002 19:59:09 -0800 (PST) From: raja kumar thatte Subject: Any body know --- 'sql query where condition execution plan' To: pgsql-admin@postgresql.org In-Reply-To: <200201211333.g0LDX4422570@candle.pha.pa.us> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-419596156-1011671949=:80484" X-Archive-Number: 200201/133 X-Sequence-Number: 3020 --0-419596156-1011671949=:80484 Content-Type: text/plain; charset=us-ascii Hai every body, I want to know how the--where condition--is executed in a sql query. e.g., select aa,bb,cc from ttt where aa=100 and bb = 200 and cc =300. my doubt is , will psql leave the record as on when it fails to satisfy a record having aa !=100 or will it chect for bb = 200 and cc = 300 also. ie will it work like C-language if condition or not. If i give paranthesis, will it change the execution plan accordingly. Thanks in advance. c u raja --------------------------------- Do You Yahoo!? Send FREE video emails in Yahoo! Mail. --0-419596156-1011671949=:80484 Content-Type: text/html; charset=us-ascii

 Hai every body,

I want to know how the--where condition--is executed in a sql query.

e.g., select aa,bb,cc from ttt where aa=100 and bb = 200 and cc =300.

my doubt is , will psql leave the record as on when it fails to satisfy a record having aa !=100 

or will it chect for bb = 200 and cc = 300 also.

ie will it work like C-language if condition or not.

If i give paranthesis, will it change the execution plan accordingly.

Thanks in advance.

c u

raja



Do You Yahoo!?
Send FREE video emails in Yahoo! Mail. --0-419596156-1011671949=:80484--