select g.id, g.name, g.weight, sum(t.count) as total from goods g join trans t on g.id =&...