Does this help? Post in more detail if not...declare @person table (person_id int, first_name varchar(10))declare @order table (order_id int, person_id int, order_total int)insert into @person (person_id, first_name) select 1, 'Nathan' union select 2, 'Adam'insert into @order (order_id, person_id, order_total) select 1, 1, 69 union select 2, 1, 12 union select 3, 2, 10select p.first_name, sum(o.order_total) order_totalfrom @order oinner join @person p on o.person_id = p.person_idwhere p.first_name like 'N%'group by p.first_name
Nathan Skerl