Przeglądaj źródła

poprawa bledu distinct

a.binder 9 lat temu
rodzic
commit
6b0d07c117
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      SE/superedit-ANALIZA_WIDOKOW_RAPORT_DAILY.php

+ 1 - 1
SE/superedit-ANALIZA_WIDOKOW_RAPORT_DAILY.php

@@ -266,7 +266,7 @@ ANALIZA_WIDOKOW_RAPORT_DAILY <form action='' METHOD='GET'>
 	
 	
 	foreach ($RAPORT['TABLES_ALL'] as $RTH_I=>$RTH_A) {
-			$sql="select DISTINCT(A_STATUS) as VALUE, count(ID) as COUNT from ".$RTH_A." ";
+			$sql="select A_STATUS as VALUE, count(ID) as COUNT from ".$RTH_A." group by A_STATUS ";
 			$res = $db->query($sql);
 			//$r2 = $db->fetch_array($res);