DB2 SQL count in join or where clause
        Posted  
        
            by Pat
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Pat
        
        
        
        Published on 2010-03-24T16:24:49Z
        Indexed on 
            2010/05/12
            21:04 UTC
        
        
        Read the original article
        Hit count: 440
        
This is probably an amateur question but I'm an amateur ! ;o)
I have several tables: Account table, Officer table, Location table, Web table... The Officer table doesn't give me the number of officers per account.
I need to retrieve only the accounts that have more than 20 officers. Should I use the COUNT ? If so, how ?
Your help is greatly appreciated. Thanks.
Pat
© Stack Overflow or respective owner