seeing the output, i think what you need is inner joinSELECT m.CEID, m.PayPeriod, m.Name,m.FRN,m.AllocPct/100 * f.GrossEarnings AS Earnings,m.AllocPct/100 * f.Dollars AS Dollars,m.AllocPct/100 * f.Benefits AS Benefits FROM (SELECT CEID, PayPeriod, Name, FRN1 AS FRN, AllocPct1 AS AllocPct FROM tblMs UNION ALL SELECT CEID, PayPeriod, Name, FRN2, AllocPct2 FROM tblMs UNION ALL SELECT CEID, PayPeriod, Name, FRN3, AllocPct3 FROM tblMs ) mINNER JOIN tblFP fON f.CEID = m.CEID AND f.PayPeriod = m.PayPeriod
------------------------------------------------------------------------------------------------------SQL Server MVPhttp://visakhm.blogspot.com/