X-Original-To: pgsql-sql-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 061AB9FA5C8 for ; Thu, 8 Jun 2006 12:50:28 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 71949-01 for ; Thu, 8 Jun 2006 12:50:19 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from srv2.worldnox.net (srv2.worldnox.net [204.10.36.240]) by postgresql.org (Postfix) with ESMTP id C0BF29F9EF3 for ; Thu, 8 Jun 2006 12:50:19 -0300 (ADT) Received: from nat-ip.dynetics.com ([204.154.192.252] helo=[10.1.16.24]) by srv2.worldnox.net with esmtpa (Exim 4.52) id 1FoMm0-0000Na-Ln for pgsql-sql@postgresql.org; Thu, 08 Jun 2006 11:50:16 -0400 Message-ID: <44884736.3080309@dafunks.com> Date: Thu, 08 Jun 2006 10:50:14 -0500 From: George Handin User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: pgsql-sql@postgresql.org Subject: Concat two fields into one at runtime Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - srv2.worldnox.net X-AntiAbuse: Original Domain - postgresql.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - dafunks.com X-Source: X-Source-Args: X-Source-Dir: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/94 X-Sequence-Number: 25330 Is there a way using built-in PostgreSQL functions to combine two data fields into a single field at runtime when querying data? For example, the query now returns: id first last --- ------- ---------- 1 Goerge Handin 2 Joe Rachin I'd like it to return: id name --- ------------------- 1 George Handin 2 Joe Rachin