I'm using the next
SELECT *,(SELECT SUM(nprod) FROM vtagar WHERE vtagar.num_vta = ventas.num_vta) as SUMG,
(SELECT SUM(nprod) FROM vtabot WHERE vtabot.num_vta = ventas.num_vta) AS SUMB
FROM ventas
the answer en Mysql 5.0.18 there is not problem, but whe I using this quetion en delphi lite 10 for microsotf windows no function
Whats the problem with SUM
check:
select SUM(columna) from table
what 'up with the SUM
SELECT SUM() FROM...
Dimon wrote:I could not reproduce the problem.
Please send me a complete small sample at dmitryg*devart*com to demonstrate it, including script to create and fill table.
Also supply me the exact version of DbxMda.
hi, the version is 2.70 corelab and I tryed with 3.oo there is same problem. Now I try with Mysql 4.1 and corelab 2.70 and is working correctly with the same consult (Selec SUM), therefor , Corelab 2.70 not support mysql 5.0, ok