title: Check column if has the same value on all the rows
body: <p>How do I check if a column has all the rows the same value?</p>
  
  <p>I don't think this will work.</p>
  
  <pre><code>SELECT column FROM table WHERE value = 1
  </code></pre>
  
  <p>I want to make, by time each row will turn from 0 to 1 till every row has value 1, if all the values are 1 to turn all in 0 </p>
  
  <pre><code>id value
  1  1
  2  1
  3  1
  4  1
  5  1
  6  1
  7  1
  </code></pre>