X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 3ABAB52BE6 for ; Wed, 10 Aug 2005 19:45:24 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84904-08 for ; Wed, 10 Aug 2005 22:45:22 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.202]) by svr1.postgresql.org (Postfix) with ESMTP id 0E31F52BC3 for ; Wed, 10 Aug 2005 19:45:21 -0300 (ADT) Received: by wproxy.gmail.com with SMTP id i22so236625wra for ; Wed, 10 Aug 2005 15:45:24 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=erF6zgQE85pYJO/RwJpoJeh29YYcek/L43aEWI0+KZkr1tLQ+rl/N55ij2b52aMIs6V8Zrn+tBBdxmto5hSsx1zM2w+mUMsbPrRQ2Nt16himjMIznN4LcfCVMiFmpqSBC3KnbVdD0olXpqtgWTF1X8sD0R4mB751J8S1PtCJdLE= Received: by 10.54.16.26 with SMTP id 26mr794867wrp; Wed, 10 Aug 2005 15:45:24 -0700 (PDT) Received: by 10.54.140.12 with HTTP; Wed, 10 Aug 2005 15:45:24 -0700 (PDT) Message-ID: <1745503505081015455e79f284@mail.gmail.com> Date: Thu, 11 Aug 2005 00:45:24 +0200 From: nori To: pgsql-sql@postgresql.org Subject: How to alias table columns in result? Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 tagged_above=0 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/51 X-Sequence-Number: 22279 Hi, If I have: 1.) table car with columns index and name=20 2.) table driver with columns index, name and car_index and query: SELECT d.*, c.* FROM driver as d LEFT OUTER JOIN car AS c ON d.car_index=3Dc.index; How can I get results that have distinct names for columns (ex. d.name, d.index, c.name, c.index,...)? tnx boris