I want to check if the "nilai" is None/Null
cursor.execute(\'SELECT s.kode_ktg_id,(SUM(n.nilai_angka * S.nilai_mk)/SUM(s.nilai_mk)) as nilai_ktg FRO