I've created a TOraQuery that contains this sql:
Code: Select all
select
sum(campo) campo
from
tabla
What's happen? Is it a error of ODAC or Oracle Server?
Thank you in advance.
Code: Select all
select
sum(campo) campo
from
tabla
Code: Select all
SELECT CAST(SUM(IntField) AS NUMBER(3)) FROM MyTable
Code: Select all
CREATE OR REPLACE VIEW DELEGACION_0001001.ESTADISTICAS2
(a)
AS
select
cast(sum(CANTIDAD_ENTREGADA_1) as number(4)) a
from
estadisticas_t
Code: Select all
desc estadisticas2
Name Type Nullable Default Comments
---- --------- -------- ------- --------
A NUMBER(4) Y
Code: Select all
On odac: select * from estadisticas2