title: SQL Server : compare all values in two tables
body: <p>How to get the following result using this two tables</p>
  
  <pre><code>TipoComponenteID1   TipoComponenteID2
  -------------------------------------
  1                   1
  NULL                3
  6                   NULL
  8                   NULL
  9                   NULL
  10                  NULL
  </code></pre>
  
  <p>TipoComponenteID1</p>
  
  <pre><code>TipoComponenteID1
  -----------------
  1
  6
  8
  9
  10
  </code></pre>
  
  <p>TipoComponenteID2</p>
  
  <pre><code>TipoComponenteID2
  -----------------
  1
  3
  </code></pre>