title: Get data from two table
body: <p>I am working on sql server 2008. I want to do something like this.
  I have two tables like this.</p>
  
  <p><strong><code>Table1</code></strong>     </p>
  
  <pre><code>Id
  1
  2
  3
  4
  </code></pre>
  
  <p><strong><code>Table2</code></strong></p>
  
  <pre><code>Id
  2
  3
  5
  6
  </code></pre>
  
  <p><strong><code>Output</code></strong></p>
  
  <pre><code>1
  2
  3
  4
  5
  6
  </code></pre>