title: Why do an error occur in the following group statement?
body: <p>I have the following code:</p>
  <pre><code>select A.DATO, A.TRANS_KD, sum(A.CPU_MILLISEC), sum(A.ZIIP_MILLISEC),
         A.time_dummy, A.BUSINESS_SYSTEM
  from
  (
      Select DATO, TRANS_KD, CPU_MILLISEC, ZIIP_MILLISEC, BUSINESS_SYSTEM,
             case when [Time] &gt;= '8' and [Time] &lt;= '16' then 1 else 0 AS time_dummy
      from UADMIA.OMKTB020_SMT_CICS_TIME
      WHERE DATO &gt;= '2022-01-01' AND (ZOS = 'SYSA' OR ZOS = 'SYSB') 
  ) A
  group by  A.DATO, A.TRANS_KD, A.BUSINESS_SYSTEM, A.time_dummy
  </code></pre>
  <p>Which return the following error:</p>
  <p><a href="https://i.stack.imgur.com/iIYj7.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iIYj7.jpg" alt="enter image description here" /></a></p>
  <p>Can you see what I do wrong?</p>