Subject Re: [ib-support] SUM + row_count
Author Nick Upson
SELECT SUM("col_1"), count(*) FROM table where "col_2"="2" INTO :answer1,
:answer2;

In article <002801c29219$cb1fc5d0$cb01a8c0@vilkasa>, wrote:
> What is SQL way to know how many rows was selected to make SUM in following
> situation:
>
> SELECT SUM("col_1") FROM "table" where "col_2"="2" INTO :"answer";
>