Hello,
There is a Unix timestamp in the “calisma_zamani” column,
How can I group “gorev_adi” according to this column and get the row records from each group?
I can’t get the latest records as below, I wonder where the problem is?
$son_gorevler = $db->prepare(" SELECT MAX(calisma_zamani) AS calisma_zamani, gorev_adi, calistirilan_dosya, calistirma_ciktisi FROM zamanlanmisgorev_gunluk GROUP BY gorev_adi ORDER BY calisma_zamani DESC");
$son_gorevler->execute();
$son_gorevler_arr = $son_gorevler->fetchAll();