Link to home
Start Free TrialLog in
Avatar of johnkainn
johnkainn

asked on

subquery cnt>x

If I have a query like:  
select MyText, cnt=(count(*) FROM TableB where TableAId=a.TableAId) FROM TableA a
and I would only like to select those rows where cnt>5. How do I do that?


ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial