title: stored procedures that counts specific users
body: <p>I have in dataBase table Users with</p>
  
  <pre><code> FrendsInvited  FrendsCame  PromouterId
   10                5           32
   12                7           25
   7                 5           32
   10                8           47
   8                 7           25
  </code></pre>
  
  <p>I need to get all FriendsCame(number) from  all PromouterId.
  that mean i need to get from.</p>
  
  <pre><code> PromouterId 32=10 FriendsCame
   PromouterId 25=14 FriendsCame
   PromouterId 47=8  FriendsCame
  </code></pre>
  
  <p>how can i do this with store procedure?(or some thing else)
  thanks.</p>