title: Select with sum() case
body: <p>I am trying to make this query work and i can't find the problem:</p>
  <pre><code>&quot;SELECT  &quot;
          . &quot;CASE victima &quot;
          . &quot;WHEN LIKE serviciul_sursei THEN SUM(nr_victime) as nr_vict FROM listaint WHERE victima = '&quot;.$victima[$k0].&quot;' &quot;
          . &quot;WHEN NOT LIKE serviciul_sursei THEN SUM(nr_victime) as nr_vict1 FROM listaint WHERE serviciul_sursei = '&quot;.$victima[$k0].&quot;' &quot;
          . &quot;END &quot;
  </code></pre>