Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW3KL-0006DH-N5 for pgsql-sql@arkaria.postgresql.org; Fri, 04 Apr 2014 12:34:34 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1WW3KL-00068z-5h for pgsql-sql@arkaria.postgresql.org; Fri, 04 Apr 2014 12:34:33 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW3KJ-00067X-Sg for pgsql-sql@postgresql.org; Fri, 04 Apr 2014 12:34:32 +0000 Received: from mail.guerrillamail.com ([198.143.169.10] helo=guerrillamail.com) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1WW3KH-0002s6-Fq for pgsql-sql@postgresql.org; Fri, 04 Apr 2014 12:34:31 +0000 Received: by 198.143.169.10 with HTTP; Fri, 04 Apr 2014 12:34:07 +0000 MIME-Version: 1.0 Message-ID: <779cbb18a1d78ad415d8faf6ba1dc9bbcd39@guerrillamail.com> Date: Fri, 04 Apr 2014 12:34:07 +0000 To: "pgsql-sql@postgresql.org" From: Subject: Formatting query result like a calendar X-Originating-IP: [82.118.102.226] Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Domain-Signer: PHP mailDomainSigner 0.2-20110415 DKIM-Signature: v=1; a=rsa-sha1; s=better; d=guerrillamail.com; l=588; t=1396614851; c=relaxed/relaxed; h=to:from:subject; bh=Ap6YpdIsaZxjDmg2PHgI3FJ+Ep4=; b=mdQ+SOm4ukIDzumNmHJoOGqDNWgoIwLdCB8l+szn7cP6FrqkIkeJnVhIrBdEl7D6 X-Pg-Spam-Score: -2.6 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-sql Precedence: bulk Sender: pgsql-sql-owner@postgresql.org Hi,=20 I have a query result that comes out as follows (this is an excerpt, the wh= ole thing shows a whole month): Date ID Day 31/03 1 Mon 01/04 0 Tue 02/04 1 Wed 03/04 1 Thu 04/04 0 Fri 07/04 1 Mon 08/04 0 Tue 09/04 1 Wed 10/04 1 Thu 11/04 0 Fri I need it in the format: Date Mon Tue Wed Thu Fri 31/03 1 0 1 1 0 07/04 1 0 1 1 0 Any ideas? Thanks! Jen ---- Sent using GuerrillMail.com Block or report abuse: https://www.guerrillamail.com/abuse/?a=3DUUZnFAFNUKU= ZqB6742oYYBHUXMbe3cVX --=20 Sent via pgsql-sql mailing list (pgsql-sql@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-sql