QUERY PLAN
HashAggregate (cost=157.47..157.75 rows=28 width=4)
Group Key: s.created_by
-> Hash Join (cost=115.64..154.74 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=94.73..94.73 rows=1673 width=8)
-> Seq Scan on tbl_approves s (cost=0.00..94.73 rows=1673 width=8)