X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.130]) by svr1.postgresql.org (Postfix) with ESMTP id A6090D1B567 for ; Thu, 9 Oct 2003 15:30:29 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (neptune.hub.org [64.117.224.130]) (amavisd-new, port 10024) with ESMTP id 53705-02 for ; Thu, 9 Oct 2003 12:29:42 -0300 (ADT) Received: from news.hub.org (unknown [64.117.224.194]) by svr1.postgresql.org (Postfix) with ESMTP id A378ED1C9F6 for ; Thu, 9 Oct 2003 12:20:57 -0300 (ADT) Received: from news.hub.org (host-64-117-224-194.altec1.com [64.117.224.194] (may be forged)) by news.hub.org (8.12.9/8.12.9) with ESMTP id h99FKvQh086872 for ; Thu, 9 Oct 2003 15:20:57 GMT (envelope-from news@news.hub.org) Received: (from news@localhost) by news.hub.org (8.12.9/8.12.9/Submit) id h99F9fRs085002 for pgsql-sql@postgresql.org; Thu, 9 Oct 2003 15:09:41 GMT From: "roberto" X-Newsgroups: comp.databases.postgresql.sql Subject: select Lines: 32 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: Date: Thu, 09 Oct 2003 15:09:34 GMT X-Complaints-To: abuse@libero.it Organization: [Infostrada] To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new at postgresql.org X-Spam-Status: No, hits=0.4 tagged_above=0.0 required=5.0 tests=BAYES_30, PRIORITY_NO_NAME, RCVD_IN_OSIRUSOFT_COM X-Spam-Level: X-Archive-Number: 200310/156 X-Sequence-Number: 15556 Dear friends, I have this table table work{ day date, hour integer, } select * from work; date | text ----------- 1-1-2003 1 1-1-2003 1 2-1-2003 5 3-1-2003 10 5-1-2003 15 how can i obtain this? date | text ----------- 1-1-2003 2 2-1-2003 5 3-1-2003 10 4-1-2003 null 5-1-2003 15 6-1-2003 null