QUERY PLAN
HashAggregate (cost=205.36..205.67 rows=31 width=4)
Group Key: s.created_by
-> Hash Join (cost=151.03..201.84 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=123.79..123.79 rows=2179 width=8)
-> Seq Scan on tbl_approves s (cost=0.00..123.79 rows=2179 width=8)