From: | "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com> |
---|---|
To: | David Costa <geeks(at)dotgeek(dot)org> |
Cc: | Robert Treat <xzilla(at)users(dot)sourceforge(dot)net>, pgsql-advocacy(at)postgresql(dot)org |
Subject: | Re: Question |
Date: | 2004-02-21 02:31:21 |
Message-ID: | 4036C2F9.6010801@commandprompt.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-advocacy |
>
> For the last line , anyone has some ideas for a one line postgresql
> query to represent our logic power ? :D
SELECT sum(coalesce((extract(epoch from
time_spent)/(60*60))::numeric(20,2),0) * coalesce(hourly_rate,
0))::numeric(20,2) AS total_cost
>
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo(at)postgresql(dot)org so that your
> message can get through to the mailing list cleanly
--
Command Prompt, Inc., home of Mammoth PostgreSQL - S/ODBC and S/JDBC
Postgresql support, programming shared hosting and dedicated hosting.
+1-503-667-4564 - jd(at)commandprompt(dot)com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL
Attachment | Content-Type | Size |
---|---|---|
jd.vcf | text/x-vcard | 640 bytes |
From | Date | Subject | |
---|---|---|---|
Next Message | Joshua D. Drake | 2004-02-21 02:33:35 | Re: plug-n-play MS SQL Server replacement |
Previous Message | Rod Taylor | 2004-02-21 02:29:38 | Re: plug-n-play MS SQL Server replacement |