Received: from maia.hub.org (unknown [200.46.204.183]) by mail.postgresql.org (Postfix) with ESMTP id 5DD686348DE for ; Wed, 3 Jun 2009 10:24:00 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 43932-09 for ; Wed, 3 Jun 2009 10:23:58 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.6 Received: from moutng.kundenserver.de (moutng.kundenserver.de [212.227.126.177]) by mail.postgresql.org (Postfix) with ESMTP id ACD58634724 for ; Wed, 3 Jun 2009 10:23:58 -0300 (ADT) Received: from webserv.wug.de ([194.25.154.138]) by mrelayeu.kundenserver.de (node=mrelayeu3) with ESMTP (Nemesis) id 0MKxQS-1MBqRf159k-0002KB; Wed, 03 Jun 2009 15:23:56 +0200 Received: from kretschmer by webserv.wug.de with local (Exim 3.36 #1) id 1MBqRe-0006Nm-00 for pgsql-sql@postgresql.org; Wed, 03 Jun 2009 15:23:54 +0200 Date: Wed, 3 Jun 2009 15:23:54 +0200 From: "A. Kretschmer" To: pgsql-sql@postgresql.org Subject: Re: complex column definition in query Message-ID: <20090603132354.GE18756@a-kretschmer.de> References: <87iqjep9hy.fsf@patagonia.sebmags.homelinux.org> <20090603050432.GA18756@a-kretschmer.de> <87prdlo4wc.fsf@patagonia.sebmags.homelinux.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87prdlo4wc.fsf@patagonia.sebmags.homelinux.org> X-OS: Debian/GNU Linux - weil ich es mir Wert bin! User-Agent: Mutt/1.5.9i X-Provags-ID: V01U2FsdGVkX1/+TNmW57aK0hY1q377cQlhejy1T8AcQpyNtxD KT4hUJDOd1FR+0YY1avlte2DV0goOerxse/nMGo8ZbS6bD13JR V7h5JlinRIaxBvGYDSIol9ErbgQnhF8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests=none X-Spam-Level: X-Archive-Number: 200906/18 X-Sequence-Number: 32623 In response to Seb : > > Thanks to all that responded on and off list. Is it necessary to ensure > that the "FROM" part of the two queries are exactly the same (the real No, but both queries should return the same columns (count, typ, order). Andreas -- Andreas Kretschmer Kontakt: Heynitz: 035242/47150, D1: 0160/7141639 (mehr: -> Header) GnuPG-ID: 0x3FFF606C, privat 0x7F4584DA http://wwwkeys.de.pgp.net