SQL("JDBC3", "select count(nc.student_id) from class_schedule_item csi LEFT JOIN named_classes nc ON csi.id=nc.class_schedule_id where nc.campus_status =1 " + if(len(Q25) = 0, '1=2', "csi.id like '%" + Q25 + "%' and "+ if(len(D4) = 0, '1=2', " csi.start_time like '%" + D4 + "%'"), 1) |