Received: from maia.hub.org (maia-3.hub.org [200.46.204.243]) by mail.postgresql.org (Postfix) with ESMTP id 720EDB5DBC8 for ; Fri, 17 Jun 2011 21:38:36 -0300 (ADT) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.243]) (amavisd-maia, port 10024) with ESMTP id 56088-10 for ; Sat, 18 Jun 2011 00:38:30 +0000 (UTC) X-Greylist: delayed 00:18:05.370643 by SQLgrey-1.7.6 Received: from sam.nabble.com (sam.nabble.com [216.139.236.26]) by mail.postgresql.org (Postfix) with ESMTP id 05683B5DBCE for ; Fri, 17 Jun 2011 21:38:29 -0300 (ADT) Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1QXjGx-0008Th-IC for pgsql-sql@postgresql.org; Fri, 17 Jun 2011 17:20:23 -0700 Date: Fri, 17 Jun 2011 17:20:23 -0700 (PDT) From: Tripura To: pgsql-sql@postgresql.org Message-ID: <1308356423557-4500306.post@n5.nabble.com> Subject: Append n Rows into a Single Row MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.766 tagged_above=-5 required=5 tests=BAYES_00=-1.9, FREEMAIL_FROM=0.001, RFC_ABUSE_POST=0.001, T_TO_NO_BRKTS_FREEMAIL=0.01, URI_HEX=1.122 X-Spam-Level: X-Archive-Number: 201106/64 X-Sequence-Number: 35530 Hi, I am totally new to PostgreSQL and this is my first script. Can anyone please help me with my following requirement I have script that returns 1 column and 40 rows. My requirement is update this existing script to show all the 40 rows data in a single row as a string. For example The current script returns, something like this Tom Tad Max Ted I have to update the existing script to show the above results as follow Tom || Tad || Max || Ted Something like colace in Ms sql Any help is really appriciated. Thankyou in Advance. -- View this message in context: http://postgresql.1045698.n5.nabble.com/Append-n-Rows-into-a-Single-Row-tp4500306p4500306.html Sent from the PostgreSQL - sql mailing list archive at Nabble.com.