• thre you go Donnie;

    actual rows 3, but the estimated rows is almost a quarter million.

    run this for the three tables involved in this query:

    UPDATE STATISTICS [dbo].[VW_DirectReports] WITH FULLSCAN ;

    UPDATE STATISTICS [dbo].[VW_Departments] WITH FULLSCAN ;

    UPDATE STATISTICS [dbo].[VW_Employee_Check_In_Status] WITH FULLSCAN ;

    and consider adding an update statistics script to run more often that whatever is doing it now.

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!