Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hMCX7-0005Qv-PB for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 14:17:57 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hMCX6-0004GC-Fr for pgsql-general@arkaria.postgresql.org; Thu, 02 May 2019 14:17:56 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1hM7b0-0006ni-6J for pgsql-general@lists.postgresql.org; Thu, 02 May 2019 09:01:38 +0000 Received: from n3.nabble.com ([162.255.23.22]) by makus.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1hM7at-0006tq-TG for pgsql-general@postgresql.org; Thu, 02 May 2019 09:01:37 +0000 Received: from n3.nabble.com (localhost [127.0.0.1]) by n3.nabble.com (Postfix) with ESMTP id A65CD13B1E5E6 for ; Thu, 2 May 2019 02:01:31 -0700 (MST) Date: Thu, 2 May 2019 02:01:31 -0700 (MST) From: anupping To: pgsql-general@postgresql.org Message-ID: <1556787691679-0.post@n3.nabble.com> In-Reply-To: <1371766705.15253.44.camel@localhost.localdomain> References: <1371766705.15253.44.camel@localhost.localdomain> Subject: Re: Easiest way to compare the results of two queries row by row and column by column MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk select * from (select id, my_age, ur_age as urage from datatable where agegp != 'S') m where m.myage <> m.urage -- Sent from: http://www.postgresql-archive.org/PostgreSQL-general-f1843780.html