Sort (cost=16.02..16.04 rows=9 width=156) |
Sort Key: tbl_departments."order" |
-> Hash Join (cost=14.67..15.88 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=14.55..14.55 rows=9 width=4) |
-> HashAggregate (cost=14.46..14.55 rows=9 width=4) |
Group Key: tbl_users.department_id |
-> Seq Scan on tbl_users (cost=6.17..14.25 rows=84 width=4) |
Filter: ((user_status = '1'::type_global_user_status) OR (hashed SubPlan 1)) |
SubPlan 1 |
-> Seq Scan on tbl_punch_repair_carbon_copy_rels (cost=0.00..6.16 rows=2 width=4) |
Filter: (punch_repair_id = 234) |