QUERY PLAN
HashAggregate (cost=158.94..159.22 rows=28 width=4)
Group Key: s.created_by
-> Hash Join (cost=117.11..156.21 rows=1093 width=4)
Hash Cond: (ccr.approve_id = s.id)
-> Seq Scan on tbl_approve_verify_rels ccr (cost=0.00..36.21 rows=1093 width=4)
Filter: (user_id = 1001)
-> Hash (cost=95.94..95.94 rows=1694 width=8)
-> Seq Scan on tbl_approves s (cost=0.00..95.94 rows=1694 width=8)