Return-Path: Delivered-To: apmail-db-derby-user-archive@www.apache.org Received: (qmail 27229 invoked from network); 7 Jan 2008 15:14:28 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Jan 2008 15:14:28 -0000 Received: (qmail 92458 invoked by uid 500); 7 Jan 2008 15:14:16 -0000 Delivered-To: apmail-db-derby-user-archive@db.apache.org Received: (qmail 92426 invoked by uid 500); 7 Jan 2008 15:14:16 -0000 Mailing-List: contact derby-user-help@db.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Reply-To: "Derby Discussion" Delivered-To: mailing list derby-user@db.apache.org Received: (qmail 92415 invoked by uid 99); 7 Jan 2008 15:14:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 07:14:16 -0800 X-ASF-Spam-Status: No, hits=-1.0 required=10.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [192.18.43.133] (HELO sca-es-mail-2.sun.com) (192.18.43.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Jan 2008 15:14:03 +0000 Received: from fe-sfbay-10.sun.com ([192.18.43.129]) by sca-es-mail-2.sun.com (8.13.7+Sun/8.12.9) with ESMTP id m07FDsjo007216 for ; Mon, 7 Jan 2008 07:13:55 -0800 (PST) Received: from conversion-daemon.fe-sfbay-10.sun.com by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) id <0JUA002014YANT00@fe-sfbay-10.sun.com> (original mail from Richard.Hillegas@Sun.COM) for derby-user@db.apache.org; Mon, 07 Jan 2008 07:13:54 -0800 (PST) Received: from richard-hillegas-computer.local ([129.150.17.12]) by fe-sfbay-10.sun.com (Sun Java System Messaging Server 6.2-8.04 (built Feb 28 2007)) with ESMTPSA id <0JUA008A74Z6IKF0@fe-sfbay-10.sun.com> for derby-user@db.apache.org; Mon, 07 Jan 2008 07:13:54 -0800 (PST) Date: Mon, 07 Jan 2008 07:14:29 -0800 From: Rick Hillegas Subject: Re: Is there a POW (power) or COS function in derby In-reply-to: <4770DD6C.6050600@sun.com> Sender: Richard.Hillegas@Sun.COM To: Derby Discussion Message-id: <478241D5.7000000@sun.com> MIME-version: 1.0 Content-type: text/plain; format=flowed; charset=ISO-8859-1 Content-transfer-encoding: 7BIT References: <4770BFDD.4010801@lizzy.com.au> <4770DD6C.6050600@sun.com> User-Agent: Thunderbird 2.0.0.9 (Macintosh/20071031) X-Virus-Checked: Checked by ClamAV on apache.org Hi Jay, As Thomas points out, the builtin COS and EXP functions may be useful to you. If these functions don't give you what you need, you can always write your own function in Java and register it with Derby using the CREATE FUNCTION command. This command is described in the "SQL language reference" section of the Derby Reference Guide: http://db.apache.org/derby/docs/10.3/ref/ Hope this helps, -Rick Thomas Nielsen wrote: > Hi Jay, > > You'll find a list of all the built-in functions, and specifics of > each, in the derby 10.3 reference manual > http://db.apache.org/derby/docs/10.3/ref/ > specifically in the topic "Built-in functions": > http://db.apache.org/derby/docs/10.3/ref/rrefsqlj29026.html > > Hope this helps! > > Cheers, > Thomas > > Jayson Hay wrote: >> Hi there, >> >> I am wanting to move from using MySQL to derby embedded. One thing I >> have not been able to work out yet is how to use POW or COS in derby. >> Are these function even available? If not, is there a workaround that >> I could use? >> >> Thanks >> Jay >