Sort (cost=120.80..120.82 rows=9 width=156) |
Sort Key: tbl_departments."order" |
-> Hash Join (cost=119.44..120.66 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=119.33..119.33 rows=9 width=4) |
-> HashAggregate (cost=119.24..119.33 rows=9 width=4) |
Group Key: tbl_users.department_id |
-> Seq Scan on tbl_users (cost=110.92..119.03 rows=83 width=4) |
Filter: ((user_status = '1'::type_global_user_status) OR (hashed SubPlan 1)) |
SubPlan 1 |
-> Seq Scan on tbl_approve_carbon_copy_rels (cost=0.00..110.91 rows=3 width=4) |
Filter: (approve_id = 2127) |