QUERY PLAN
Sort (cost=135.14..135.17 rows=9 width=156)
Sort Key: tbl_departments."order"
-> Hash Join (cost=133.79..135.00 rows=9 width=156)
Hash Cond: (tbl_departments.id = tbl_users.department_id)
-> Seq Scan on tbl_departments (cost=0.00..1.09 rows=9 width=152)
-> Hash (cost=133.68..133.68 rows=9 width=4)
-> HashAggregate (cost=133.59..133.68 rows=9 width=4)
Group Key: tbl_users.department_id
-> Seq Scan on tbl_users (cost=125.29..133.38 rows=84 width=4)
Filter: ((user_status = '1'::type_global_user_status) OR (hashed SubPlan 1))
SubPlan 1
-> Seq Scan on tbl_reimbursement_settle_rels (cost=0.00..125.29 rows=1 width=4)
Filter: (reimbursement_id = 7434)