use Medoo\Medoo;
$sql = $database->get('tablo', [
'col_group',
'score' => Medoo::raw('SUM(<TUT> / <K>)')
], [
'FNO' => 2,
"GROUP"=>["col_group",]
]);
bdump($sql) ;
foreach ($sql as $data):
echo $sql['col_group']."<br>";
echo $sql['score']."<br>";
endforeach;
Hiç yorum yok:
Yorum Gönder