I don't really understand your whole query, but to suppress the rows with NULL-Value in BeginningBalance you can wrap the whole query as a derived table and then filter it like this:SELECT * FROM(SELECT rnk.Rolling_Plan_Display AS RankName , CASEWHEN (ha.Fiscal_Month_Id = (SELECT MIN(Fiscal_Month_Id)FROM Fiscal_Month WHERE FY_Year = '2008')) THEN Beginnig_BalanceEND AS BeginningBalance-- , Ending_Balance AS BeginningBalance, SUM(Hires) OVER(PARTITION BY rnk.Rolling_Plan_Display) AS Hires, SUM(Separations_Voluntary) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS SeparationVoluntary, SUM(Separations_InVoluntary) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS SeparationInvoluntary, SUM(Transfers_In) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS TransfersIn, SUM(Transfers_Out) OVER(PARTITION BY rnk.Rolling_Plan_Display) AS TransfersOut, SUM(Promotions_In) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS PromotionsIn, SUM(Promotions_Out) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS PromotionsOut, SUM(Leave_Of_Absence_In) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS UnpaidLeaveIn, SUM(Leave_Of_Absence_Out) OVER (PARTITION BY rnk.Rolling_Plan_Display) AS UnpaidLeaveOutFROM HeadCount_Actual ha, Rank rnkWHERE ha.Business_Unit_Id =(SELECT Business_Unit_IdFROM Business_UnitWHERE Business_Unit_Code = 'US001'AND Business_Unit_Name = 'Northeast')AND ha.Location_Id = (SELECT Location_IdFROM LocationWHERE Location_Code = '0010L'AND Location_Name = 'New York, NY')AND ha.Fiscal_Month_Id BETWEEN(SELECT MIN(Fiscal_Month_Id) FROM Fiscal_MonthWHERE FY_Year = '2008') AND (SELECT MAX(Fiscal_Month_Id) FROM Fiscal_MonthWHERE FY_Year = '2008') AND rnk.Rank_Id = ha.Rank_IdAND rnk.Is_Used_For_Planning = 1)tWHERE BeginningBalance IS NOT NULL
Webfred
No, you're never too old to Yak'n'Roll if you're too young to die.