title: How to select the comparison of two columns as one column in Oracle
body: <p>I cannot figure out how to add a column to my SELECT query indicating whether two columns contain the same data in Oracle.</p>
  
  <p>I would like to write a query like:</p>
  
  <pre><code>select column1, column2, column1=column2 from table
  </code></pre>
  
  <p>and, if I have this table:</p>
  
  <pre><code>+---------+---------+
  | column1 | column2 |
  +---------+---------+
  | value1  | value1  |
  | value2  | value3  |
  | value4  | value4  |
  +---------+---------+
  </code></pre>
  
  <p>get a result like:</p>
  
  <pre><code>+---------+---------+-----------------+
  | column1 | column2 | column1=column2 |
  +---------+---------+-----------------+
  | value1  | value1  | true            |
  | value2  | value3  | false           |
  | value4  | value4  | true            |
  +---------+---------+-----------------+
  </code></pre>
  
  <p>What is the correct syntax to do this?</p>