I don't use QUERY/400 very often but I'm trying to make one that should accomplish what this SQL statement does:
select zy$gnr, count(*)
from f58330
where zy$ccp = 'R' and zy$roc = 'R'
group by zy$gnr
having count(*) > 1
order by zy$gnr
I can create everything above in a query, except I don't know how to handle the HAVING clause, i.e. to only get those that have a count > 1. Can I accomplish this in Query/400?
select zy$gnr, count(*)
from f58330
where zy$ccp = 'R' and zy$roc = 'R'
group by zy$gnr
having count(*) > 1
order by zy$gnr
I can create everything above in a query, except I don't know how to handle the HAVING clause, i.e. to only get those that have a count > 1. Can I accomplish this in Query/400?
Comment