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 1AEFE52F08 for ; Mon, 15 Aug 2005 20:55:35 -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 66839-06 for ; Mon, 15 Aug 2005 23:55:30 +0000 (GMT) Received: from rproxy.gmail.com (rproxy.gmail.com [64.233.170.198]) by svr1.postgresql.org (Postfix) with ESMTP id 5116A52F00 for ; Mon, 15 Aug 2005 20:55:29 -0300 (ADT) Received: by rproxy.gmail.com with SMTP id r35so924101rna for ; Mon, 15 Aug 2005 16:55:33 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:mime-version:content-transfer-encoding:message-id:content-type:to:from:subject:date:x-mailer; b=gP490xgIzMkSX0QtSBgGJm15rLFUcEN/+EQ8jje8azq4txOXUE30evk1yLB57zmOWPCdGevTB4feBoVRrOisZK7a1CBs/OeCV1yQ6QrAoDzY26muAfv9Ow2Gl9zJe5+k9GbzWXhMTEudZEaJS4Iml9kPrvkYpFBZQ1eIf0m+Z9k= Received: by 10.39.1.5 with SMTP id d5mr2106826rni; Mon, 15 Aug 2005 16:55:32 -0700 (PDT) Received: from ?192.168.254.145? ([209.221.53.56]) by mx.gmail.com with ESMTP id h17sm1810034rnb.2005.08.15.16.55.32; Mon, 15 Aug 2005 16:55:32 -0700 (PDT) Mime-Version: 1.0 (Apple Message framework v733) Content-Transfer-Encoding: 7bit Message-Id: <84C5C116-630B-4363-AF37-FF38F9BBC813@gmail.com> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed To: pgsql-sql@postgresql.org From: Simon Law Subject: SQL output Date: Mon, 15 Aug 2005 19:55:20 -0400 X-Mailer: Apple Mail (2.733) X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.024 required=5 tests=[RCVD_BY_IP=0.024] X-Spam-Level: X-Archive-Number: 200508/104 X-Sequence-Number: 22332 CREATE TABLE tablename (field INTERVAL); INSERT INTO tablename VALUES('3 weeks'); SELECT field FROM tablename; _________ | field | |--------------| | 21 days | |________| The output shows up in days or months but not weeks how do i make it output in weeks? Any help with this will be greatly appreciated P.S. Best postgresql book?