Re: Pls Hlp: SQL Problem

Поиск
Список
Период
Сортировка
От Scott Marlowe
Тема Re: Pls Hlp: SQL Problem
Дата
Msg-id dcc563d10809121304p3d7de469sa381a5fa9a6194a7@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Pls Hlp: SQL Problem  (Hengky Lie <hengkyliwandouw@gmail.com>)
Ответы Re: Pls Hlp: SQL Problem  ("Fernando Hevia" <fhevia@ip-tel.com.ar>)
Список pgsql-sql
On Fri, Sep 12, 2008 at 12:50 PM, Hengky Lie <hengkyliwandouw@gmail.com> wrote:
> Dear Richard,
>
> Sorry for that :) and thanks for your tips, but it didn't solve my problem.
> Maybe because my postgresql knowledge limitation. I have tried your
> suggestion, my view like this :

Put parens around the whole thing, like:

(tbltransaksi.hargapokok * tbltransaksi.keluar)::numeric(2,0) AS modal

Otherwise you're really doing this:

tbltransaksi.hargapokok::numeric * tbltransaksi.keluar::numeric(2,0) AS modal

and when you multiply a numeric times a numeric(2,0) you get a
numeric, not a numeric(2,0)


В списке pgsql-sql по дате отправления:

Предыдущее
От: Hengky Lie
Дата:
Сообщение: Re: Pls Hlp: SQL Problem
Следующее
От: "Scott Marlowe"
Дата:
Сообщение: Re: Doubts about FK