ldejesuspr
Programmer
I have the following statement and in the total column i expect the count of all the rows, instead it counts only itself
Expertise on this will be appreciated
SELECT count(UNIOGEN.numss) as total, uniogen.age, UNIOGEN.fkclasif, UNIOGEN.fkport
FROM dbo.UNIOGEN where UNIOGEN.age between 26 and 35 and
uniogen.numss not in (select depemp.numss from depemp where depemp.parentesco like 'espos')
group by numss, uniogen.age, UNIOGEN.fkclasif, UNIOGEN.fkport
Expertise on this will be appreciated
SELECT count(UNIOGEN.numss) as total, uniogen.age, UNIOGEN.fkclasif, UNIOGEN.fkport
FROM dbo.UNIOGEN where UNIOGEN.age between 26 and 35 and
uniogen.numss not in (select depemp.numss from depemp where depemp.parentesco like 'espos')
group by numss, uniogen.age, UNIOGEN.fkclasif, UNIOGEN.fkport