title: SQL Query to get Distinct Values of all column values in a table
body: <p>How to retrieve distinct values from all columns in a Table.</p>
  
  <p><code>Select Distinct col1, col2, col3, col4 from table1</code> will give the unique records by checking the equality of all the columns. But I need all disctinct values from a table? Thanks in advance.</p>
  
  <p>For Ex: My table has below records:</p>
  
  <pre><code>Col1                  Col2                  Col3                    Col4
  ------------------------------------------------------------------------ 
  Melbourne             Sit1                  10.0                    5.3 
  Melbourne             Sit2                  10.1                    5.4 
  Sydney                Sit1                  10.0                    5.3 
  Sydney                Sit3                  10.0                    5.3 
  Bangalore             Sit1                  10.5                    0.1
  </code></pre>
  
  <p>The end result should be like below:</p>
  
  <pre><code>Result
  ----------------
  Melbourne
  Sydney
  Bangalore
  Sit1
  Sit2
  Sit3
  10.0
  10.1
  10.5
  5.3
  5.4
  5.1
  </code></pre>
  
  <p>Order doesn't matter.</p>