QUERY PLAN
HashAggregate (cost=655.46..656.21 rows=75 width=4)
Group Key: s.created_by
-> Hash Join (cost=15.31..654.81 rows=260 width=4)
Hash Cond: (s.id = ccr.schedule_id)
-> Seq Scan on tbl_schedules s (cost=0.00..546.17 rows=14517 width=8)
-> Hash (cost=12.06..12.06 rows=260 width=4)
-> Seq Scan on tbl_schedule_carbon_copy_rels ccr (cost=0.00..12.06 rows=260 width=4)
Filter: (user_id = 1004)