QUERY PLAN
Group (cost=2.81..2.82 rows=3 width=4)
Group Key: sgr.user_id
-> Sort (cost=2.81..2.82 rows=3 width=4)
Sort Key: sgr.user_id
-> Hash Join (cost=1.21..2.78 rows=3 width=4)
Hash Cond: (sgr.sales_goal_id = sg.id)
-> Seq Scan on tbl_sales_goal_rels sgr (cost=0.00..1.43 rows=43 width=8)
-> Hash (cost=1.20..1.20 rows=1 width=4)
-> Seq Scan on tbl_sales_goals sg (cost=0.00..1.20 rows=1 width=4)
Filter: ((id <> 15) AND (goal_year = '2026'::smallint))