title: Sql sum values different id
body: <p>i have a simple table . How can i sum  in SQL only values based on Riclass ID?</p>
  <div class="s-table-container">
  <table class="s-table">
  <thead>
  <tr>
  <th style="text-align: left;">Riclass_Id</th>
  <th style="text-align: right;">Value</th>
  </tr>
  </thead>
  <tbody>
  <tr>
  <td style="text-align: left;">0</td>
  <td style="text-align: right;">92751</td>
  </tr>
  <tr>
  <td style="text-align: left;">3</td>
  <td style="text-align: right;">56757</td>
  </tr>
  <tr>
  <td style="text-align: left;">4</td>
  <td style="text-align: right;">64666</td>
  </tr>
  <tr>
  <td style="text-align: left;">5</td>
  <td style="text-align: right;">88888</td>
  </tr>
  </tbody>
  </table>
  </div>
  <p>I tried  this code but doesn't work.</p>
  <pre><code>SELECT 
  Riclass_ID
  SUM (Value)
  FROM Mytable
  WHERE Riclass_Id= 0 and Riclass_Id= 3
  </code></pre>