I have total 4 records in ecare table, where 2 records status is sent = 1, and other 2 records status is
2 records
I would try:
String sql = "SELECT p.sent,e.*, e.no _id FROM ecare e, pweb p WHERE e.h_id=p.h_id AND e.sent = '0' ";