Aggregate field

In this forum we will discuss things relating the ZEOSLib 6.6.x stable versions

Moderators: gto, EgonHugeist

Post Reply
dargos
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.01.2009, 01:17

Aggregate field

Post by dargos »

Does zeos support aggregate fields?
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

What do you mean exactly?
Select statements using group by and aggregate functions as count(), max(), ... are evaluated correctly. Of course, these queries are not updatable because of the grouping.

Mark
Image
dargos
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.01.2009, 01:17

Post by dargos »

I tried TZQuery with sql and with upadte object.
select id, type, count from table

Fields was created automatic and I created TAggregate field with expression Sum(count). I don't use grouping I want sum over full query.

But aggregate field doesn't do anything, it has null value for all time.
akli_agha
Junior Boarder
Junior Boarder
Posts: 41
Joined: 08.01.2008, 20:35

Post by akli_agha »

Perhaps because your field 'count' is a reserved word ??
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

Dargos??

Was akli_agha's answer useful? Otherwise, please post a bug report + test project in the bug tracker at http://zeosbugs.firmos.at/
We can't just guess what you're exactly trying to do. Don't forget to include a data creation script.

Mark
Image
dargos
Fresh Boarder
Fresh Boarder
Posts: 3
Joined: 19.01.2009, 01:17

Post by dargos »

I study c++ builder help and I found Taggregate fields is support only by TClientDataset.
It would by nice to support this by zeos
User avatar
mdaems
Zeos Project Manager
Zeos Project Manager
Posts: 2766
Joined: 20.09.2005, 15:28
Location: Brussels, Belgium
Contact:

Post by mdaems »

No way of working using a TZQuery, combined with TDataSetProvider and TClientDataset? Should work...

Mark
Image
Post Reply