QUERY PLAN
HashAggregate (cost=156.01..156.29 rows=28 width=4)
Group Key: s.created_by
-> Hash Join (cost=115.64..153.29 rows=1087 width=4)
Hash Cond: (ccr.approve_id = s.id)
-> Seq Scan on tbl_approve_verify_rels ccr (cost=0.00..34.79 rows=1087 width=4)
Filter: (user_id = 1001)
-> Hash (cost=94.73..94.73 rows=1673 width=8)
-> Seq Scan on tbl_approves s (cost=0.00..94.73 rows=1673 width=8)