Learn about Hyper-V features that increase functionality and usability of Microsoft Windows Server 2016. Also, throughout this eBook, you’ll find some basic PowerShell examples that will help you leverage the scripts in your environments!
select cat.[Area], ISNULL([Total Lost Hours],0) AS [Total Lost Hours], ISNULL([Target_Lost_Hours],0) AS [Target_Lost_Hours] from [dbo].[MachineLosses_Area] cat left join (SELECT a.[Area], Isnull(SUM(b.[Total Lost Hours]),0) AS [Total Lost Hours], Isnull(SUM(c.[Target_Lost_Hours]),0) AS [Target_Lost_Hours] FROM [dbo].[MachineLosses_Area] a left outer join [dbo].[MachineLosses_View] b on a.[Area] = b.[Area/Line/Machine] left outer join [dbo].[TargetLosses_View] c on a.[Area] = c.[Area] and b.[Date] = c.[Date] where b.[date] between '01/10/2014' and '20/10/2014' GROUP BY a.[Area] ) sub on cat.[Area] = sub.[Area] ORDER BY [Total Lost Hours] DESC
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.