Hi, I am trying to join two tables usig two temporary tables.I want the Output as table2/table1 = OutputSelect temp2.Value/temp1.Value as valfrom ((select count(*)as Value from [Master] minner join [Spares]s on s.SId=m.SIDwhere m.Valid_From between '2007-06-01' and '2007-06-30')temp1Union(select isnull(sum(convert(numeric(10,0),s.Unit_Price)),'0') as Valuefrom [Order] hinner join [Spares] s on s.Number = s.Numberwhere h.Valid_Date between '2007-06-01' and '2007-06-30'))temp2as t
I could not find the output..Plz help me..Thanks..