| Sort (cost=11.46..11.50 rows=13 width=10) |
| Sort Key: d."order" |
| -> HashAggregate (cost=11.09..11.22 rows=13 width=10) |
| Group Key: u.id, d.id |
| -> Hash Left Join (cost=1.20..11.03 rows=13 width=10) |
| Hash Cond: (u.department_id = d.id) |
| -> Seq Scan on tbl_users u (cost=0.00..9.78 rows=13 width=8) |
| Filter: (id = ANY ('{1000,5360,5300,1011,1005,1004,1015,5295,5064,5446,1001,5461,5087}'::integer[])) |
| -> Hash (cost=1.09..1.09 rows=9 width=6) |
| -> Seq Scan on tbl_departments d (cost=0.00..1.09 rows=9 width=6) |