Re: Question - Mailing list pgsql-advocacy

From Joshua D. Drake
Subject Re: Question
Date
Msg-id 4036C2F9.6010801@commandprompt.com
Whole thread Raw
In response to Re: Question  (David Costa <geeks@dotgeek.org>)
List 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@postgresql.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@commandprompt.com - http://www.commandprompt.com
Mammoth PostgreSQL Replicator. Integrated Replication for PostgreSQL

Attachment

pgsql-advocacy by date:

Previous
From: Rod Taylor
Date:
Subject: Re: plug-n-play MS SQL Server replacement
Next
From: "Joshua D. Drake"
Date:
Subject: Re: plug-n-play MS SQL Server replacement