Hi All,Can anyone explain this how this FROM worksSELECT AVG(Daily_Amt) AS Daily_Average FROM (SELECT SUM(Sales_Amount) FROMSales_Hist GROUP BY Period_Date) Temp(Daily_Amt); MS Sql Server LazyDBA home page