I am developing a component that makes a list with pagination, in order to do that I have an sql generator.
I need to get the number of rows that the sql query will produce, but I need to count by several columns:
SELECT COUNT(A.id, B.id, ...)
FROM table1 as A, table2 as B
WHERE .....
I am using Informix 10, then this behavior is not supported, I think that I can use a subquery:
SELECT COUNT(*)
FROM (SELECT COUNT(A.id, B.id, ...)
FROM table1 as A, table2 as B
WHERE .....) as D
But is unsupported too in Informix 10 (in Mysql the two approaches are supported)
Some ideas?
