Re: Pls Hlp: SQL Problem - Mailing list pgsql-sql

From Fernando Hevia
Subject Re: Pls Hlp: SQL Problem
Date
Msg-id 00e901c91523$2c633e70$8f01010a@iptel.com.ar
Whole thread Raw
In response to Re: Pls Hlp: SQL Problem  ("Scott Marlowe" <scott.marlowe@gmail.com>)
Responses Re: Pls Hlp: SQL Problem  ("Scott Marlowe" <scott.marlowe@gmail.com>)
List pgsql-sql
 

> -----Mensaje original-----
> De: pgsql-sql-owner@postgresql.org 
> [mailto:pgsql-sql-owner@postgresql.org] En nombre de Scott Marlowe
> 
> On Fri, Sep 12, 2008 at 12:50 PM, Hengky Lie 
> <hengkyliwandouw@gmail.com> wrote:
> > Dear Richard,
> >
> 
> Put parens around the whole thing, like:
> 
> (tbltransaksi.hargapokok * tbltransaksi.keluar)::numeric(2,0) AS modal
> 

Consider that if you are NOT going to use the decimals you should really use
integer or bigint datatypes. The numeric type compute much slower than
integer datatypes.

Regards,
Fernando



pgsql-sql by date:

Previous
From: "Scott Marlowe"
Date:
Subject: Re: Doubts about FK
Next
From: "Scott Marlowe"
Date:
Subject: Re: Pls Hlp: SQL Problem