SELECT cat, COUNT(*), COUNT(tag) FROM rtable WHERE qu > 0 AND qu < 4 GROUP BY qu
An example table would look something like
Code: Select all
1 54 3
2 26 4
3 56 8Code: Select all
1 54 3
2 26 4
3 56 8
tot 136 15UNION ALL
SELECT 'tot', COUNT(*), COUNT(tag)
FROM table
WHERE qu > 0 and qu < 4
If I run the query at an sqlite command prompt the resultant table is correct
If I run the same query through a TUniQuery I dont get the 'tot' label but rather I get
Code: Select all
1 54 3
2 26 4
3 56 8
0 136 15