CREATE PROCEDURE dbo.spFeedbackReport @leader nchar(10) AS BEGIN /* AvgQ26 and AvgQ30 are views that i created */ SELECT (dbo.AvgQ26.Q26 + dbo.AvgQ30.Q30) / 2 AS [Personal Accountability] FROM dbo.AvgQ26 CROSS JOIN dbo.AvgQ30 WHERE (dbo.AvgQ26.LeaderID = @leader) AND (AvgQ26.Rater = 'Line Manager') END BEGIN SELECT AVG(AvgQ11.Q11) AS [Acting with Intergrity] FROM AvgQ11 WHERE (AvgQ11.LeaderID = @leader) AND (AvgQ11.Rater = 'Line Manager') END
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)