"Troubleshooting Errors in SQL Stored Procedure for Calculating Employee Bonuses"
khanzain
✭✭
"I'm working on a stored procedure that calculates employee bonuses, but there's a hiccup. Can you pinpoint the error in the code provided?
CREATE PROCEDURE CalculateSalary
@EmployeeID INT,
@BonusPercentage DECIMAL(5, 2) OUTPUT
AS
BEGIN
SELECT INTO @BonusPercentage = Salary * 0.1
FROM Employees
WHERE EmployeeID = @EmployeeID;
END;"
Answers
-
Hi @khanzain
Is your question regarding the Smartsheet application? This looks to be more of a programming question. I would recommend posting in a developer forum, such as Stack Overflow: https://stackoverflow.com/
Cheers,
Genevieve
Need more help? 👀 | Help and Learning Center
こんにちは (Konnichiwa), Hallo, Hola, Bonjour, Olá, Ciao! 👋 | Global Discussions
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 139 Industry Talk
- 471 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 496 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives