title: Aggregate bitwise-OR in a subquery
body: <p>Given the following table:</p>
  
  <pre><code>CREATE TABLE BitValues ( n int )
  </code></pre>
  
  <p>Is it possible to compute the bitwise-OR of <code>n</code> for all rows <i>within a subquery</i>? For example, if BitValues contains these 4 rows:</p>
  
  <pre>
  +---+
  | n |
  +---+
  | 1 |
  | 2 |
  | 4 |
  | 3 |
  +---+
  </pre>
  
  <p>I would expect the subquery to return 7. Is there a way to do this inline, <i>without creating a UDF</i>?</p>