title: Query for fetching address in SQL
body: <p>I have a table of users, and in this table I have 2 columns id and username and another table useraddress which has id, userid(foreign key for the id in user table)and address. How can I write a SQL query to get the addresses of the users along with userid and also the query to fetch the unique addresses for each id</p>
  <p>I used query this which gives me below result but I want count of addresses a user has and also want to display unique address corresponding each user.</p>
  <p><a href="https://i.stack.imgur.com/OWXec.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWXec.png" alt="enter image description here" /></a></p>