Newbie that is learning.I have four Tables masterpartlabormiscAnd I'm trying to sum the field where the costs are. This is a one to many relationship between master and the others. select master.t_orno, isnull(convert(decimal(9,2),sum(part.t_inam)),0)as 'PARTS', isnull(convert(decimal(9,2),sum(labor.t_inam)),0)as 'LABOR', isnull(convert(decimal(9,2),sum(misc.t_inam)),0)as 'MISC'from ttssoc200100 as master join ttssoc220100 as parton master.t_orno=part.t_orno join ttssoc230100 as laboron master.t_orno=labor.t_orno join ttssoc240100 as miscon master.t_orno=misc.t_orno where master.t_osta='15'group by master.t_ornoorder by master.t_orno
What happening is it's taking the results and multiple them by the number of records in each table. ?!?Where it should be $359 it $53900. I have tried left/right/inner/outer/cross joins and they have all failed.I tried to understand a loop but got lost.Any help?Card Gunner