Create well-organized and polished visualizations of your virtual and backup environments when planning VMware vSphere, Microsoft Hyper-V or Veeam deployments. It helps you to gain better visibility and valuable business insights.
IF EXISTS (SELECT * FROM SYSOBJECTS WHERE ID = OBJECT_ID(N'[dbo].[usp_SF6_GetCylinderBOY]') AND OBJECTPROPERTY(id, N'IsProcedure') = 1) DROP PROCEDURE [dbo].[usp_SF6_GetCylinderBOY] GO CREATE PROCEDURE [dbo].[usp_SF6_GetCylinderBOY] @CompanyID int, @YearPartDate datetime AS BEGIN SELECT SUM(GasWeight) FROM ( select we.ContainerID, we.GasWeight, row_number() over (partition by we.ContainerID order by we.DateStamp desc) rn FROM [WeighingEvents] we JOIN [Container] c ON we.[ContainerID] = c.[ContainerID] WHERE c.ContainerTypeID = 1 AND we.[CompanyID] = @CompanyID AND we.[Active] = 1 AND (YEAR(we.[DateStamp]) = YEAR(@YearPartDate)) ) sq WHERE rn = 1 END GO
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.