QUERY PLAN
HashAggregate (cost=208.33..208.64 rows=31 width=4)
Group Key: s.created_by
-> Hash Join (cost=154.00..204.81 rows=1407 width=4)
Hash Cond: (ccr.approve_id = s.id)
-> Seq Scan on tbl_approve_verify_rels ccr (cost=0.00..47.11 rows=1407 width=4)
Filter: (user_id = 1001)
-> Hash (cost=126.22..126.22 rows=2222 width=8)
-> Seq Scan on tbl_approves s (cost=0.00..126.22 rows=2222 width=8)