I have a table of products which contains some 2000 clothing products, each product has a grpIdent
field and a productGroup
field.
when I run the following query:
select count(1)
from tblclothingitems ci
where productGroup='hel'
group by productGroup, grpIdent
I get a resultset of 99 rows, according to SQL Yog, containing different values pertaining to the number of rows for each group. BUT I want to return the number 99 giving the number of rows returned.
Does anybody have an idea on how I can achieve this please?