X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id 0EA6ED1BA5D for ; Fri, 22 Aug 2003 07:24:01 -0300 (ADT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 84013-04 for ; Fri, 22 Aug 2003 07:23:31 -0300 (ADT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by svr1.postgresql.org (Postfix) with ESMTP id 198B3D1BA74 for ; Fri, 22 Aug 2003 07:23:29 -0300 (ADT) Received: from klaster.net (core-1.citynet.pl [80.48.135.69]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id ABC612B3A4; Fri, 22 Aug 2003 12:23:28 +0200 (CEST) Message-ID: <3F45EF2E.7060709@klaster.net> Date: Fri, 22 Aug 2003 12:23:42 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; pl-PL; rv:1.5a) Gecko/20030718 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Rajesh Kumar Mallah Cc: pgsql-sql@postgresql.org Subject: Re: Joined deletes but one table being a subquery. References: <200308221531.13782.mallah@trade-india.com> In-Reply-To: <200308221531.13782.mallah@trade-india.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200308/269 X-Sequence-Number: 14885 > Hi Folks, > > DELETE from eyp_listing where userid=t_a.userid and category_id=t_a.category_id; > such queries work perfectly. > > but if t_a is a subquery how to accomplish the delete. What kind of subquery it is? Exist/Not exist doesn't work? Regards, Tomasz Myrta