Microsoft SQL Server view not showing the correct results