Don't get a duplicated record on SQL
<p>From a select query I have the result something like this:</p>

<pre><code>IdCompany | IdUser | ComapnyName | JobTitle
1           100      Company1      Developer
2           100      Company2      Developer
3           200      Company3      Developer
4           200      Company4      Developer
5           200      Company5      Developer
6           300      Company6      Developer
</code></pre>

<p>What I want is to get same fields but not the duplicated IdUser, for each IdUser to get only one record. I tried with DISTINCT and EXISTS but couldn't come to a solution.
This is the way I want my result to be:</p>

<pre><code>IdCompany | IdUser | ComapnyName | JobTitle
1           100      Company1      Developer
5           200      Company5      Developer
6           300      Company6      Developer
</code></pre>