| Aggregate (cost=157.61..157.62 rows=1 width=8) |
| -> Sort (cost=157.59..157.60 rows=1 width=228) |
| Sort Key: s.created_at DESC |
| -> Group (cost=157.57..157.58 rows=1 width=228) |
| Group Key: s.id, u.id |
| -> Sort (cost=157.57..157.58 rows=1 width=16) |
| Sort Key: s.id, u.id |
| -> Nested Loop Left Join (cost=0.00..157.56 rows=1 width=16) |
| Join Filter: (u.id = s.head_of) |
| -> Seq Scan on tbl_tasks s (cost=0.00..149.79 rows=1 width=24) |
| Filter: ((head_of = 1001) AND (status = 0)) |
| -> Seq Scan on tbl_users u (cost=0.00..7.76 rows=1 width=4) |
| Filter: (id = 1001) |