Subject | Re: [IBO] How to display in TIB_GRID ? |
---|---|
Author | Lucas Franzen |
Post date | 2005-04-25T10:23:37Z |
Zoran,
Zoran Zivkovic schrieb:
SELECT DISTINCT PARTNO
, EAPARTNO
, FILTER_TYPE
, COMMENT
, ((CENOVNIK.SP*83*1.18)/1) AS MPC
FROM FILTER_PARTS
LEFT OUTER JOIN CENOVNIK ON (FILTER_PARTS.EAPARTNO=CENOVNIK.EAPARTNO)
but certainly this field causes the trouble.
Try
((CENOVNIK.SP*83.00*1.18)/1.00) AS MPC
(Dialect 3 will use the lowest precision you "declared", so multiplying
by 83 and dividing by 1 will result in an integer --> changing to 83.00
and 1.00 might help)
or try to cast the whole thing:
, CAST ( ((CENOVNIK.SP*83.00*1.18)/1.00 AS DOUBLE PRECISON)) AS MPC
Luc.
Zoran Zivkovic schrieb:
>I don't know the field type of CENOVNIK.SP, you do:
> Luc,
>
> I just tried this also , and I receive a error:
> '543.567' is not valid integer value. (value of column I want to
> format).
SELECT DISTINCT PARTNO
, EAPARTNO
, FILTER_TYPE
, COMMENT
, ((CENOVNIK.SP*83*1.18)/1) AS MPC
FROM FILTER_PARTS
LEFT OUTER JOIN CENOVNIK ON (FILTER_PARTS.EAPARTNO=CENOVNIK.EAPARTNO)
but certainly this field causes the trouble.
Try
((CENOVNIK.SP*83.00*1.18)/1.00) AS MPC
(Dialect 3 will use the lowest precision you "declared", so multiplying
by 83 and dividing by 1 will result in an integer --> changing to 83.00
and 1.00 might help)
or try to cast the whole thing:
, CAST ( ((CENOVNIK.SP*83.00*1.18)/1.00 AS DOUBLE PRECISON)) AS MPC
Luc.