When I write the following query in SQL application, it works fine, get the result as I expected.
SELECT
stu_fname,
stu_lname,
sb_classname,
sb_classdate,
sb_stime
FROM
atp_sign_book,
atp_student
WHERE
sb_classdate >= CURRENT_TIMESTAMP
AND sb_operation = 'Booking'
AND atp_sign_book.stu_id = atp_student.stu_id
ORDER BY
sb_classdate,sb_stime
but when I try to use Java code to get same result, it has no result
ResultSet rSet = statement.executeQuery("SELECT stu_fname,stu_lname,sb_classname,sb_classdate,sb_stime"+
"FROM atp_sign_book, atp_student" +
"WHERE sb_classdate >= CURRENT_TIMESTAMP AND sb_operation = 'Booking' AND atp_sign_book.stu_id = atp_student.stu_id ORDER BY sb_classdate, sb_stime");
and I tried to remove part of the code to see how it works, and I found that as long as I add
atp_sign_book.stu_id = atp_student.stu_id
the result becomes nothing