Topic: I have problem sql query displays empty id in tablegrid
anyone can help me?
I have problem sql query displays empty id in tablegrid on my aplcation when i search between datetimepicker1 and datetimepicker2 at Laporan Absensi
there are my script
select distinct
(select employees.id from employees where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as id,
(select trim(
ifnull(firstname||' ','')||
ifnull(lastname,'')
) from employees where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Nama,
(select jabatan from jabatan where jabatan.id = employees.id_jabatan AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Jabatan,
(select unitkerja from unitkerja where unitkerja.id = employees.id_unitkerja AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as UnitKerja,
(select romawi from unitkerja where unitkerja.id = employees.id_unitkerja AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as romawi,
(select harikerja from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as HariKerja,
(select sum (hadir) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Hadir,
(select sum (alpha) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Alpha,
(select sum (sakit) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as sakit,
(select sum (ijincuti) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Ijin_Cuti,
(select sum (terlambat) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Terlambat,
(select sum (sanksiapel) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as SanksiApel,
(select sum (lembur) from attendancedays where employees.id = attendancedays.id_employees AND attendancedays.date >= {datetimepicker1} and attendancedays.date <= {datetimepicker2} ) as Lembur
from attendancedays
left outer join employees on attendancedays.id_employees = employees.id
left outer join unitkerja on employees.id_unitkerja = unitkerja.id
order by unitkerja.id asc
this is the link app :
https://www.mediafire.com/file/0e1neg10 … 7.rar/file