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 E523A32AE0A for ; Sun, 10 Oct 2004 15:20:12 +0100 (BST) 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 39575-10 for ; Sun, 10 Oct 2004 14:20:05 +0000 (GMT) Received: from mproxy.gmail.com (rproxy.gmail.com [64.233.170.193]) by svr1.postgresql.org (Postfix) with ESMTP id B22B832A8E5 for ; Sun, 10 Oct 2004 15:20:06 +0100 (BST) Received: by mproxy.gmail.com with SMTP id 77so155333rnk for ; Sun, 10 Oct 2004 07:19:58 -0700 (PDT) Received: by 10.38.65.39 with SMTP id n39mr1135516rna; Sun, 10 Oct 2004 07:19:58 -0700 (PDT) Received: by 10.38.126.69 with HTTP; Sun, 10 Oct 2004 07:19:57 -0700 (PDT) Message-ID: <5d14ecf904101007197d0acbbf@mail.gmail.com> Date: Sun, 10 Oct 2004 19:49:57 +0530 From: sreejith s Reply-To: sreejith s To: pgsql-sql@postgresql.org Subject: SQL doubt - Date Add Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/68 X-Sequence-Number: 19171 Hi friends, I problem is i want to add a specified no. of years to a given date ie, 12/12/2004 + 5 = 12/12/2009. This has to be done via sql. Any predefined function there for the same. or v have split the yr and then add. Sreejith