Please start any new threads on our new 
    site at https://forums.sqlteam.com.  We've got lots of great SQL Server
    experts to answer whatever question you can come up with.
    
        | 
                
                    | 
                            
                                | Author | Topic |  
                                    | ntn104Posting Yak  Master
 
 
                                        175 Posts | 
                                            
                                            |  Posted - 2011-10-26 : 11:58:29 
 |  
                                            | Hello,How do I write sql statement to select all accounts that have the same address (multiple accounts the same address)for example:account 123, 345, 678 can have the same address as:12th streetPhiladelphia, pa 19012I tried the following sql statement, but return zero row...but it should have a lot...select id, address1from table1group by ssn, address1having (count(address1)>1)Thanks, |  |  
                                    | X002548Not Just a Number
 
 
                                    15586 Posts |  |  
                                    | ntn104Posting Yak  Master
 
 
                                    175 Posts |  |  
                                |  |  |  |